Tag images with git revision
Fix images names when pushing to registry
This commit is contained in:
parent
23ab82838c
commit
c6ee065273
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue