Skip to content

Commit

Permalink
Update pipelines to login before docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
iaacautomation committed Sep 27, 2024
1 parent 8ef1515 commit 2f220ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/deploy-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Log in to the Docker Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand All @@ -56,14 +63,6 @@ jobs:
with:
strip_v: true


- name: Log in to the Docker Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Gitlab Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Log in to the Docker Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand Down Expand Up @@ -57,13 +64,6 @@ jobs:
with:
strip_v: true

- name: Log in to the Docker Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Gitlab Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v3
Expand Down

0 comments on commit 2f220ca

Please sign in to comment.