# SPDX-FileCopyrightText: 2020 Luke Granger-Brown # # SPDX-License-Identifier: Apache-2.0 stages: - build - deploy nixCache: stage: build image: "nixos/nix:latest" script: - "nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh" - "nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\"" - "rm /nix/var/nix/gcroots/per-user/$USER/last-built-systems || true" - "cp ./result /nix/var/nix/gcroots/per-user/$USER/last-built-systems" - "nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result" tags: - cacher .deploy: stage: deploy tags: - deployer ixvm-fra01: extends: .deploy #resource_group: ixvm-fra01 script: './hack/deploy.sh "ixvm-fra01" ""' marukuru: extends: .deploy #resource_group: marukuru script: './hack/deploy.sh "marukuru" "-p 20022"' clouvider-fra01: extends: .deploy #resource_group: clouvider-fra01 script: './hack/deploy.sh "clouvider-fra01" ""' kusakabe: extends: .deploy #resource_group: kusakabe script: './hack/deploy.sh "kusakabe" ""' clouvider-lon01: extends: .deploy script: './hack/deploy.sh "clouvider-lon01" ""' totoro: extends: .deploy script: './hack/deploy.sh "totoro" ""' swann: extends: .deploy script: './hack/deploy.sh "swann" ""' docker-push: stage: deploy tags: - deployer script: './hack/dockerpush.sh'