parent
36f19d42c5
commit
d91162275c
6 changed files with 53 additions and 13 deletions
|
|
@ -5,12 +5,14 @@ jobs:
|
|||
steps:
|
||||
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||
- run: nix-env -i nodejs # bootstrap
|
||||
- run: curl -sLo /etc/containers/policy.json https://github.com/containers/skopeo/blob/879dbc3757610a574f9fcc44ea23ef9e8e2b6fe3/default-policy.json
|
||||
- uses: actions/checkout@v4
|
||||
- run: mkdir -p /etc/containers && cp default-policy.json /etc/containers/policy.json
|
||||
- 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
|
||||
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 }}" oci-archive:///tmp/img.tar docker://git.10110110.xyz/ci/$tag:latest
|
||||
done
|
||||
'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue