feat: add create another tag for image
This commit is contained in:
parent
293547ea0a
commit
743c9d0ba5
1 changed files with 4 additions and 1 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -13,7 +13,10 @@ jobs:
|
|||
- name: Setup skopeo
|
||||
run: curl -o /etc/containers/policy.json --create-dirs https://raw.githubusercontent.com/containers/skopeo/refs/heads/main/default-policy.json
|
||||
- name: Push Image
|
||||
run: nix run --extra-experimental-features "flakes nix-command" nixpkgs#skopeo -- copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) docker://git.tami.moe/tamipes/nix
|
||||
run: |
|
||||
nix shell --extra-experimental-features "flakes nix-command" nixpkgs#skopeo -c sh -c
|
||||
'skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) docker://git.tami.moe/tamipes/nix &&
|
||||
skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) docker://git.tami.moe/tamipes/nix:$(date --iso-8601)'
|
||||
env:
|
||||
USERNAME: tamipes
|
||||
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue