mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
fix(ci): install buildah in the correct job
This commit is contained in:
parent
b0d24f753c
commit
9d28984261
1 changed files with 2 additions and 3 deletions
|
|
@ -12,9 +12,6 @@ build:image:
|
||||||
matrix:
|
matrix:
|
||||||
- ARCH: ["x86_64-linux", "aarch64-linux"]
|
- ARCH: ["x86_64-linux", "aarch64-linux"]
|
||||||
image: nixpkgs/nix-flakes:latest
|
image: nixpkgs/nix-flakes:latest
|
||||||
before_script:
|
|
||||||
- nix profile install nixpkgs#buildah
|
|
||||||
- export PATH="$PATH:$HOME/.nix-profile/bin"
|
|
||||||
script:
|
script:
|
||||||
- nix build .#image --system $ARCH
|
- nix build .#image --system $ARCH
|
||||||
after_script:
|
after_script:
|
||||||
|
|
@ -27,6 +24,8 @@ deploy:image:
|
||||||
needs:
|
needs:
|
||||||
- build:image
|
- build:image
|
||||||
before_script:
|
before_script:
|
||||||
|
- nix profile install nixpkgs#buildah
|
||||||
|
- export PATH="$PATH:$HOME/.nix-profile/bin"
|
||||||
- export REGISTRY_AUTH_FILE=''${HOME}/auth.json
|
- export REGISTRY_AUTH_FILE=''${HOME}/auth.json
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
- mkdir -p /etc/containers && echo '{"default":[{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
- mkdir -p /etc/containers && echo '{"default":[{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue