Tag images with git revision
All checks were successful
/ atticd (push) Successful in 58s
/ blog-pim (push) Successful in 1m3s
/ forgejo-nix-action (push) Successful in 2m3s

Fix images names when pushing to registry
This commit is contained in:
Pim Kunis 2024-04-28 23:04:53 +02:00
parent 23ab82838c
commit c6ee065273
3 changed files with 12 additions and 3 deletions

View file

@ -19,4 +19,7 @@ jobs:
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push atticd to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:latest
run: |
/bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:latest
gitrev=$(git --git-dir checkout/.git --work-tree checkout rev-parse HEAD)
/bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:$gitrev

View file

@ -18,4 +18,7 @@ jobs:
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push blog-pim to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/forgejo-nix-action:latest
run: |
/bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/blog-pim:latest
gitrev=$(git --git-dir checkout/.git --work-tree checkout rev-parse HEAD)
/bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/blog-pim:$gitrev

View file

@ -18,4 +18,7 @@ jobs:
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push forgejo-nix-action to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:latest
run: |
/bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:latest
gitrev=$(git --git-dir checkout/.git --work-tree checkout rev-parse HEAD)
/bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:$gitrev