Skip to content

Commit f03a73b

Browse files
committed
fix CI
1 parent 09c0e0f commit f03a73b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,25 @@ jobs:
2828
helm lint infra/helm/zippy
2929
3030
- name: Login to Docker Hub
31+
env:
32+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
3133
if: env.DOCKERHUB_USERNAME != null && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
3234
uses: docker/login-action@v3
3335
with:
3436
username: ${{ secrets.DOCKERHUB_USERNAME }}
3537
password: ${{ secrets.DOCKERHUB_TOKEN }}
3638

3739
- name: Push images
40+
env:
41+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
3842
if: env.DOCKERHUB_USERNAME != null && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
3943
run: |
4044
docker image ls | grep ${{ env.DOCKER_TAG }} | awk '{ print $1 }' | xargs -I {} echo docker tag {}:${{ env.DOCKER_TAG }} {}:${{ github.ref_name }} | bash
4145
REGISTRY_NAMESPACE=alchemyfr/ps- DOCKER_TAG=${{ github.ref_name }} docker compose push
4246
4347
- name: Push latest
48+
env:
49+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
4450
if: env.DOCKERHUB_USERNAME != null && startsWith(github.ref, 'refs/tags/')
4551
run: |
4652
LATEST_TAG=$(curl \

0 commit comments

Comments
 (0)