nix/.forgejo/workflows/images.yaml
iofq 1fa7f6a2fc
Some checks failed
/ check (push) Successful in 4m38s
build / build (nvim) (push) Failing after 5m30s
add CI images to repo
2026-02-28 12:05:08 -06:00

19 lines
789 B
YAML

on: [push]
jobs:
check:
runs-on: nix-upstream-latest
permissions:
id-token: "write"
contents: "read"
steps:
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- run: nix-env -i nodejs skopeo # bootstrap
- uses: actions/checkout@v4
- run: mkdir -p /etc/containers && cp .forgejo/default-policy.json /etc/containers/policy.json
- run: |-
for line in $(cat .forgejo/tags.txt); do
IFS=: read -r pkg tag <<< $line
cp $(nix build .#$pkg --print-out-paths) /tmp/img.tar.gz
gunzip /tmp/img.tar.gz
skopeo copy --dest-creds="${{ secrets.FJ_USER }}:${{ secrets.FJ_PASS }}" docker-archive:///tmp/img.tar docker://git.10110110.xyz/ci/$tag:latest
done