Skip to content

Commit

Permalink
chore: login to dockerhub before use it
Browse files Browse the repository at this point in the history
  • Loading branch information
akiletour committed Oct 12, 2024
1 parent 00c7b2b commit 47cde93
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'
shell: "bash -Eeuo pipefail -x {0}"

jobs:
generate-jobs:
Expand All @@ -35,15 +35,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -52,4 +52,3 @@ jobs:
push: true
cache-from: type=gha,scope=${{ github.ref_name }}-${{ matrix.name }}
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-${{ matrix.name }}

0 comments on commit 47cde93

Please sign in to comment.