Skip to content

Commit 97ffb43

Browse files
fix docker login issue.
1 parent cc54ef3 commit 97ffb43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-&-publish-docker-image.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ jobs:
7575
7676
- name: Build Base image
7777
# if: contains(steps.changed-files.outputs.modified_files, 'docker.local/base.Dockerfile')
78+
env:
79+
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }}
7880
run: |
81+
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
7982
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8)
8083
8184
./docker.local/bin/build.base.sh &&
@@ -159,7 +162,10 @@ jobs:
159162
160163
- name: Build Base image
161164
# if: contains(steps.changed-files.outputs.modified_files, 'docker.local/base.Dockerfile')
165+
env:
166+
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }}
162167
run: |
168+
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
163169
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8)
164170
165171
./docker.local/bin/build.base.sh

0 commit comments

Comments
 (0)