Bump Nix image to 22.05

This commit is contained in:
Quentin 2022-07-24 11:08:02 +02:00
parent a49d0ea19f
commit 96561c48a1
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 40 additions and 45 deletions

View file

@ -16,19 +16,30 @@ environment:
HOME: /drone/garage HOME: /drone/garage
steps: steps:
- name: setup nix - name: nix maintainance
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes:
- name: nix_store
path: /mnt
- name: nix_config
path: /etc/nix
commands:
- "[ -d /mnt/store/3vpyn2qz5ay057nq9x68sh0r328d77ng-nix-2.8.1/ ] || (mkdir -p /mnt/store && cp -r /nix/store/* /mnt/store/)"
- "[ -d /mnt/var/ ] || cp -r /nix/var /mnt/"
- cp nix/nix.conf /etc/nix/nix.conf
- name: warmup cache
image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
- name: nix_config - name: nix_config
path: /etc/nix path: /etc/nix
commands: commands:
- cp nix/nix.conf /etc/nix/nix.conf
- nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation - nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation
- name: code quality - name: code quality
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -39,7 +50,7 @@ steps:
- nix-shell --attr rust --run "cargo clippy -- --deny warnings" - nix-shell --attr rust --run "cargo clippy -- --deny warnings"
- name: build - name: build
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -50,7 +61,7 @@ steps:
- nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage" - nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage"
- name: unit + func tests - name: unit + func tests
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
environment: environment:
GARAGE_TEST_INTEGRATION_EXE: result/bin/garage GARAGE_TEST_INTEGRATION_EXE: result/bin/garage
volumes: volumes:
@ -75,7 +86,7 @@ steps:
- ./result/bin/integration-* - ./result/bin/integration-*
- name: smoke-test - name: smoke-test
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -93,9 +104,6 @@ trigger:
- tag - tag
- cron - cron
node:
nix: 1
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -113,7 +121,7 @@ environment:
steps: steps:
- name: setup nix - name: setup nix
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -124,7 +132,7 @@ steps:
- nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation - nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation
- name: build - name: build
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -135,7 +143,7 @@ steps:
- nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage" - nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage"
- name: integration - name: integration
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -145,7 +153,7 @@ steps:
- nix-shell --attr integration --run ./script/test-smoke.sh || (cat /tmp/garage.log; false) - nix-shell --attr integration --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
- name: push static binary - name: push static binary
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -160,7 +168,7 @@ steps:
- nix-shell --attr release --run "to_s3" - nix-shell --attr release --run "to_s3"
- name: docker build and publish - name: docker build and publish
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -184,9 +192,6 @@ trigger:
- promote - promote
- cron - cron
node:
nix: 1
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -204,7 +209,7 @@ environment:
steps: steps:
- name: setup nix - name: setup nix
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -215,7 +220,7 @@ steps:
- nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation - nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation
- name: build - name: build
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -226,7 +231,7 @@ steps:
- nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage" - nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage"
- name: integration - name: integration
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -236,7 +241,7 @@ steps:
- nix-shell --attr integration --run ./script/test-smoke.sh || (cat /tmp/garage.log; false) - nix-shell --attr integration --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
- name: push static binary - name: push static binary
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -251,7 +256,7 @@ steps:
- nix-shell --attr release --run "to_s3" - nix-shell --attr release --run "to_s3"
- name: docker build and publish - name: docker build and publish
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -274,9 +279,6 @@ trigger:
- promote - promote
- cron - cron
node:
nix: 1
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -294,7 +296,7 @@ environment:
steps: steps:
- name: setup nix - name: setup nix
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -305,7 +307,7 @@ steps:
- nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation - nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation
- name: build - name: build
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -316,7 +318,7 @@ steps:
- nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage" - nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage"
- name: push static binary - name: push static binary
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -331,7 +333,7 @@ steps:
- nix-shell --attr release --run "to_s3" - nix-shell --attr release --run "to_s3"
- name: docker build and publish - name: docker build and publish
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -354,9 +356,6 @@ trigger:
- promote - promote
- cron - cron
node:
nix: 1
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -374,7 +373,7 @@ environment:
steps: steps:
- name: setup nix - name: setup nix
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -385,7 +384,7 @@ steps:
- nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation - nix-build --no-build-output --no-out-link shell.nix -A rust.inputDerivation -A integration.inputDerivation -A release.inputDerivation
- name: build - name: build
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -396,7 +395,7 @@ steps:
- nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage" - nix-shell --attr rust --run "./script/not-dynamic.sh result/bin/garage"
- name: push static binary - name: push static binary
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -411,7 +410,7 @@ steps:
- nix-shell --attr release --run "to_s3" - nix-shell --attr release --run "to_s3"
- name: docker build and publish - name: docker build and publish
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -434,9 +433,6 @@ trigger:
- promote - promote
- cron - cron
node:
nix: 1
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -449,7 +445,7 @@ volumes:
steps: steps:
- name: refresh-index - name: refresh-index
image: nixpkgs/nix:nixos-21.05 image: nixpkgs/nix:nixos-22.05
volumes: volumes:
- name: nix_store - name: nix_store
path: /nix path: /nix
@ -473,11 +469,8 @@ trigger:
- promote - promote
- cron - cron
node:
nix: 1
--- ---
kind: signature kind: signature
hmac: 60fad5d78c12616be848aae35703f250300abab5f2eda08eb48fe3afd6cc58c8 hmac: 12b06094741a9b6da448e3a176d2fc37b2c261ab87acefa60a070e67a55352b0
... ...

View file

@ -3,3 +3,5 @@ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDS
max-jobs = auto max-jobs = auto
cores = 4 cores = 4
log-lines = 200 log-lines = 200
filter-syscalls = false
sandbox = false