mirror of
https://github.com/luzifer-docker/argo-crypt.git
synced 2024-12-20 06:11:17 +00:00
Push as same version as argocd
This commit is contained in:
parent
df02cb2939
commit
5033757a46
1 changed files with 5 additions and 7 deletions
12
.github/workflows/docker.yaml
vendored
12
.github/workflows/docker.yaml
vendored
|
@ -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}
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue