images/.forgejo/workflows/main.yaml
iofq a8d5c26989
Some checks failed
/ check (push) Failing after 2m39s
init
2026-01-11 23:06:24 -06:00

16 lines
748 B
YAML

on: [push]
jobs:
check:
runs-on: nix-upstream-latest
steps:
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- run: nix-env -i nodejs curl # bootstrap
- run: curl -sLo /etc/containers/policy.json https://github.com/containers/skopeo/blob/879dbc3757610a574f9fcc44ea23ef9e8e2b6fe3/default-policy.json
- uses: actions/checkout@v4
- run: |-
nix develop --command bash -c '
for line in $(cat tags.txt); do
IFS=: read -r pkg tag <<< $line
skopeo copy --dest-creds="${{ secrets.FJ_USER }}:${{ secrets.FJ_PASS }}" docker-image://$(nix build .#$pkg --print-out-paths) docker://git.10110110.xyz/ci/$tag:latest
done
'