feat: change order of image upload, so latest will be the "latest"

This commit is contained in:
Tamipes 2026-01-17 11:21:04 +01:00
parent 33716f871c
commit 26b0e92539

View file

@ -15,8 +15,8 @@ jobs:
- name: Push Image - name: Push Image
run: | run: |
nix shell --extra-experimental-features "flakes nix-command" nixpkgs#skopeo -c sh -c \ 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://$IMG_URL" && \ 'skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL:$(date --iso-8601)" && \
skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL:$(date --iso-8601)"' skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL"'
env: env:
USERNAME: tamipes USERNAME: tamipes
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }} UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}