Skip to content

Commit 9d84237

Browse files
authored
Merge pull request #7688 from onflow/peter/ci-docker-auth
[CI] Add dockerhub login
2 parents 85577de + 71f54b6 commit 9d84237

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ jobs:
314314
with:
315315
go-version: ${{ env.GO_VERSION }}
316316
cache: true
317+
318+
- name: Login to Docker Hub
319+
uses: docker/login-action@v3
320+
with:
321+
username: ${{ vars.DOCKERHUB_USERNAME }}
322+
password: ${{ secrets.DOCKERHUB_TOKEN }}
323+
317324
- name: Docker build
318325
env:
319326
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}

.github/workflows/image_builds.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ jobs:
9393
- name: Setup Google Cloud Authentication
9494
run: gcloud auth configure-docker ${{ env.PRIVATE_REGISTRY_HOST }}
9595

96+
- name: Login to Docker Hub
97+
uses: docker/login-action@v3
98+
with:
99+
username: ${{ vars.DOCKERHUB_USERNAME }}
100+
password: ${{ secrets.DOCKERHUB_TOKEN }}
101+
96102
- name: Execute ${{ matrix.build_command }} command to build and push images
97103
env:
98104
IMAGE_TAG: ${{ inputs.tag }}

0 commit comments

Comments
 (0)