ci: tweak container images

This commit is contained in:
Nikos Papadakis 2023-10-25 18:15:57 +03:00
parent 2bab72a9b7
commit 0ce0132554
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
2 changed files with 8 additions and 11 deletions

View file

@ -13,14 +13,13 @@ matrix:
steps:
build:
image: git.nikos.gg/prymn/images/nix:89bb1c18
image: git.nikos.gg/prymn/images/nix:f3da8a6b
secrets: [ ATTIC_SECRET ]
commands:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- attic login local http://172.17.0.1:8080/ "$${ATTIC_SECRET}"
- attic use prymn
- attic login local http://172.17.0.1:8080 "$${ATTIC_SECRET}"
- attic use prymn-cache
- nix build -L ".#agent-${BUILD_TARGET}"
- attic push prymn ./result
- attic push prymn-cache ./result
- mkdir -p "dist/${BUILD_TARGET}"
- cp result/bin/prymn_agent "dist/${BUILD_TARGET}/"

View file

@ -4,12 +4,10 @@ when:
steps:
flake-check:
group: test
image: git.nikos.gg/prymn/images/nix:89bb1c18
image: git.nikos.gg/prymn/images/nix:f3da8a6b
secrets: [ ATTIC_SECRET ]
commands:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf # TODO: Move in image
- attic login local http://172.17.0.1:8080/ "$${ATTIC_SECRET}"
- attic use prymn
- attic login local http://172.17.0.1:8080 "$${ATTIC_SECRET}"
- attic use prymn-cache
- nix -L flake check
# TODO: nix run jq cache inside image?
- attic push prymn $(nix eval .#checks.aarch64-linux --json | nix run nixpkgs#jq -- -r '.|join(" ")')
- attic push prymn-cache $(nix eval .#checks.aarch64-linux --json | jq -r '.|join(" ")')