Skip to content

Commit

Permalink
Moved docker login under matrix CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
jomariya23156 committed Mar 30, 2024
1 parent 8500ba9 commit 5da7b2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_push_docker_hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Upload repository as artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -46,6 +40,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for ${{ matrix.image.name }} Docker
id: meta
uses: docker/metadata-action@v3
Expand Down

0 comments on commit 5da7b2c

Please sign in to comment.