feat: when building on actions use the builtin skopeo
Some checks failed
Build and Push docker image / buildAndPush (push) Failing after 1m49s

This commit is contained in:
Tamipes 2026-05-29 16:24:18 +02:00
parent f69de09f52
commit 2fce25f4cd

View file

@ -17,9 +17,9 @@ jobs:
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 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:$(date --iso-8601)" && \
skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL"'
alias skp='skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" "docker-archive://$(realpath result)"'
skp "docker://$IMG_URL:$(date --iso-8601)" && \
skp "docker://$IMG_URL"
env:
USERNAME: tamipes
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}