2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-05-09 12:48:37 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2020-05-09 17:53:17 +00:00
|
|
|
- deploy
|
2020-05-09 12:48:37 +00:00
|
|
|
|
2020-05-08 16:48:34 +00:00
|
|
|
nixCache:
|
2020-05-09 12:48:37 +00:00
|
|
|
stage: build
|
2020-05-08 16:48:34 +00:00
|
|
|
image: "nixos/nix:latest"
|
|
|
|
script:
|
2020-05-10 01:32:05 +00:00
|
|
|
- "nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh"
|
2020-11-04 18:59:06 +00:00
|
|
|
- "nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
|
2020-05-09 12:48:37 +00:00
|
|
|
- "nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
|
2020-11-04 17:30:28 +00:00
|
|
|
tags:
|
|
|
|
- cacher
|
2020-05-09 17:53:17 +00:00
|
|
|
|
|
|
|
.deploy:
|
|
|
|
stage: deploy
|
|
|
|
tags:
|
|
|
|
- deployer
|
|
|
|
|
|
|
|
ixvm-fra01:
|
|
|
|
extends: .deploy
|
2020-05-09 23:13:35 +00:00
|
|
|
#resource_group: ixvm-fra01
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "ixvm-fra01" ""'
|
2020-05-09 23:01:47 +00:00
|
|
|
|
|
|
|
marukuru:
|
|
|
|
extends: .deploy
|
2020-05-09 23:13:35 +00:00
|
|
|
#resource_group: marukuru
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "marukuru" "-p 20022"'
|
2020-05-09 23:01:47 +00:00
|
|
|
|
|
|
|
clouvider-fra01:
|
|
|
|
extends: .deploy
|
2020-05-09 23:13:35 +00:00
|
|
|
#resource_group: clouvider-fra01
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "clouvider-fra01" ""'
|
2020-09-06 16:27:45 +00:00
|
|
|
|
|
|
|
kusakabe:
|
|
|
|
extends: .deploy
|
|
|
|
#resource_group: kusakabe
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "kusakabe" ""'
|
2020-10-04 01:34:09 +00:00
|
|
|
|
2020-11-04 17:41:40 +00:00
|
|
|
clouvider-lon01:
|
|
|
|
extends: .deploy
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "clouvider-lon01" ""'
|
|
|
|
|
|
|
|
totoro:
|
|
|
|
extends: .deploy
|
|
|
|
script: './hack/deploy.sh "totoro" ""'
|
|
|
|
|
|
|
|
swann:
|
|
|
|
extends: .deploy
|
|
|
|
script: './hack/deploy.sh "swann" ""'
|
2020-11-04 17:41:40 +00:00
|
|
|
|
2020-12-27 11:28:21 +00:00
|
|
|
etheroute-lon01:
|
|
|
|
extends: .deploy
|
|
|
|
script: './hack/deploy.sh "etheroute-lon01" ""'
|
|
|
|
|
2020-10-04 01:34:09 +00:00
|
|
|
docker-push:
|
|
|
|
stage: deploy
|
|
|
|
tags:
|
|
|
|
- deployer
|
2020-10-04 01:36:18 +00:00
|
|
|
script: './hack/dockerpush.sh'
|