Skip to content

Commit 7dc15b3

Browse files
committed
Login on all stages, not just the prod one :)
1 parent e9b0a48 commit 7dc15b3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/pipeline-docker-cloud.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ jobs:
145145
needs: [build]
146146
runs-on: ubuntu-latest
147147
steps:
148+
- name: Login to Docker Hub
149+
uses: docker/login-action@v3
150+
with:
151+
username: ${{ secrets.DOCKERHUB_USERNAME }}
152+
password: ${{ secrets.DOCKERHUB_TOKEN }}
153+
148154
- name: Do the deploy
149155
run: |
150156
echo "Do the staging deployment here. Would deploy image ${IMAGE_TAG}"

.github/workflows/pipeline-gha.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ jobs:
135135
needs: [build]
136136
runs-on: ubuntu-latest
137137
steps:
138+
- name: Login to Docker Hub
139+
uses: docker/login-action@v3
140+
with:
141+
username: ${{ secrets.DOCKERHUB_USERNAME }}
142+
password: ${{ secrets.DOCKERHUB_TOKEN }}
143+
138144
- name: Do the deploy
139145
run: |
140146
echo "Do the staging deployment here. Would deploy image ${IMAGE_TAG}"

0 commit comments

Comments
 (0)