feat: add create another tag for image

This commit is contained in:
Tamipes 2026-01-12 20:14:06 +01:00
parent 293547ea0a
commit 743c9d0ba5

View file

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