Skip to content

Commit

Permalink
Simplify docker hub login
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonmeister committed Sep 27, 2023
1 parent 08f80aa commit 3e606e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/octo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ jobs:
env:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
run: |
docker login --username $USERNAME --password "$PASSWORD"
run: docker login --username $USERNAME --password "$PASSWORD"
if: ${{ needs.get-octo-cli-version.outputs.CONTINUE == 'Yes' }}

- name: Build the alpine docker image
env:
Expand All @@ -113,7 +113,8 @@ jobs:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
run: docker login --username $USERNAME --password "$PASSWORD"

if: ${{ needs.get-octo-cli-version.outputs.CONTINUE == 'Yes' }}

- name: Build manifests
env:
VERSION_NUMBER: ${{ needs.get-octo-cli-version.outputs.VERSION }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/octopus-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
env:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
run: |
docker login --username $USERNAME --password "$PASSWORD"
run: docker login --username $USERNAME --password "$PASSWORD"
if: ${{ needs.get-octopus-cli-version.outputs.CONTINUE == 'Yes' }}

# Build ubuntu images
- name: Build the alpine docker image
Expand All @@ -112,6 +112,7 @@ jobs:
USERNAME: ${{ secrets.DOCKER_HUB_USER }}
PASSWORD: ${{ secrets.DOCKER_HUB_PAT }}
run: docker login --username $USERNAME --password "$PASSWORD"
if: ${{ needs.get-octopus-cli-version.outputs.CONTINUE == 'Yes' }}

- name: Build manifests
env:
Expand Down

0 comments on commit 3e606e9

Please sign in to comment.