Push as same version as argocd

This commit is contained in:
Knut Ahlers 2024-09-16 21:29:34 +02:00
parent df02cb2939
commit 5033757a46
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -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}
...