Skip to content

Commit

Permalink
Push as same version as argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
Luzifer committed Sep 16, 2024
1 parent df02cb2 commit 5033757
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build
- name: Docker Build & Push
run: |
tag=$(awk -F: '/FROM.*argocd/{ print $2 }' Dockerfile)
docker buildx build \
--no-cache \
--pull \
--tag ghcr.io/${GITHUB_REPOSITORY,,}:latest \
--tag ghcr.io/${GITHUB_REPOSITORY,,}:${tag} \
.
- name: Docker Push
run: |
docker push ghcr.io/${GITHUB_REPOSITORY,,}:latest
if: ${{ github.ref == 'refs/heads/master' }}
docker push ghcr.io/${GITHUB_REPOSITORY,,}:${tag}
...

0 comments on commit 5033757

Please sign in to comment.