feat: when building on actions use the builtin skopeo
Some checks failed
Build and Push docker image / buildAndPush (push) Failing after 1m49s
Some checks failed
Build and Push docker image / buildAndPush (push) Failing after 1m49s
This commit is contained in:
parent
f69de09f52
commit
2fce25f4cd
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -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
|
run: curl -o /etc/containers/policy.json --create-dirs https://raw.githubusercontent.com/containers/skopeo/refs/heads/main/default-policy.json
|
||||||
- name: Push Image
|
- name: Push Image
|
||||||
run: |
|
run: |
|
||||||
nix shell --extra-experimental-features "flakes nix-command" nixpkgs#skopeo -c sh -c \
|
alias skp='skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" "docker-archive://$(realpath result)"'
|
||||||
'skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL:$(date --iso-8601)" && \
|
skp "docker://$IMG_URL:$(date --iso-8601)" && \
|
||||||
skopeo copy --dest-password "$UPLOAD_TOKEN" --dest-username "$USERNAME" docker-archive://$(realpath result) "docker://$IMG_URL"'
|
skp "docker://$IMG_URL"
|
||||||
env:
|
env:
|
||||||
USERNAME: tamipes
|
USERNAME: tamipes
|
||||||
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
|
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue