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"
|
2021-03-20 02:36:59 +00:00
|
|
|
- "cat ./result/other-systemPathJSON > systems.json"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- systems.json
|
|
|
|
expire_in: '30 days'
|
2020-11-04 17:30:28 +00:00
|
|
|
tags:
|
|
|
|
- cacher
|
2020-05-09 17:53:17 +00:00
|
|
|
|
|
|
|
.deploy:
|
|
|
|
stage: deploy
|
2021-03-20 03:12:05 +00:00
|
|
|
needs:
|
|
|
|
- job: nixCache
|
|
|
|
artifacts: true
|
2020-05-09 17:53:17 +00:00
|
|
|
tags:
|
|
|
|
- deployer
|
2021-03-28 01:31:35 +00:00
|
|
|
# environment:
|
|
|
|
# deployment_tier: production
|
2020-05-09 17:53:17 +00:00
|
|
|
|
2020-05-09 23:01:47 +00:00
|
|
|
marukuru:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: marukuru
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "marukuru" "-p 20022"'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: marukuru
|
2020-05-09 23:01:47 +00:00
|
|
|
|
|
|
|
clouvider-fra01:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: clouvider-fra01
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "clouvider-fra01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: clouvider-fra01
|
2020-09-06 16:27:45 +00:00
|
|
|
|
|
|
|
kusakabe:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: kusakabe
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "kusakabe" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: kusakabe
|
2020-10-04 01:34:09 +00:00
|
|
|
|
2020-11-04 17:41:40 +00:00
|
|
|
clouvider-lon01:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: clouvider-lon01
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "clouvider-lon01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: clouvider-lon01
|
2020-11-05 01:29:26 +00:00
|
|
|
|
|
|
|
totoro:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: totoro
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "totoro" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: totoro
|
2020-11-05 01:29:26 +00:00
|
|
|
|
|
|
|
swann:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: swann
|
2020-11-05 01:29:26 +00:00
|
|
|
script: './hack/deploy.sh "swann" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: swann
|
2020-11-04 17:41:40 +00:00
|
|
|
|
2020-12-27 11:28:21 +00:00
|
|
|
etheroute-lon01:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: etheroute-lon01
|
2020-12-27 11:28:21 +00:00
|
|
|
script: './hack/deploy.sh "etheroute-lon01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: etheroute-lon01
|
2020-12-27 11:28:21 +00:00
|
|
|
|
2021-02-09 01:18:06 +00:00
|
|
|
blade-janeway:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: blade-janeway
|
2021-02-09 01:18:06 +00:00
|
|
|
script: './hack/deploy.sh "blade-janeway" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: blade-janeway
|
2021-02-09 01:18:06 +00:00
|
|
|
|
2021-03-14 02:03:08 +00:00
|
|
|
# chakotay and kim are not autodeployed because they're usually off.
|
|
|
|
#blade-chakotay:
|
|
|
|
# extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
# resource_group: blade-chakotay
|
2021-03-14 02:03:08 +00:00
|
|
|
# script: './hack/deploy.sh "blade-chakotay" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
# environment:
|
|
|
|
# name: blade-chakotay
|
2021-03-14 02:03:08 +00:00
|
|
|
#
|
|
|
|
#blade-kim:
|
|
|
|
# extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
# resource_group: blade-kim
|
2021-03-14 02:03:08 +00:00
|
|
|
# script: './hack/deploy.sh "blade-kim" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
# environment:
|
|
|
|
# name: blade-kim
|
2021-02-09 01:18:06 +00:00
|
|
|
|
2021-03-13 16:42:00 +00:00
|
|
|
# paris and tuvok are not autodeployed because they are the routers, and I don't trust myself
|
|
|
|
#blade-paris:
|
|
|
|
# extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
# resource_group: blade-paris
|
2021-03-13 16:42:00 +00:00
|
|
|
# script: './hack/deploy.sh "blade-paris" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
# environment:
|
|
|
|
# name: blade-paris
|
2021-03-13 16:42:00 +00:00
|
|
|
#
|
|
|
|
#blade-tuvok:
|
|
|
|
# extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
# resource_group: blade-tuvok
|
2021-03-13 16:42:00 +00:00
|
|
|
# script: './hack/deploy.sh "blade-tuvok" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
# environment:
|
|
|
|
# name: blade-tuvok
|
2021-02-09 01:18:06 +00:00
|
|
|
|
|
|
|
blade-torres:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: blade-torres
|
2021-02-09 01:18:06 +00:00
|
|
|
script: './hack/deploy.sh "blade-torres" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: blade-torres
|
2021-02-09 01:18:06 +00:00
|
|
|
|
2021-03-28 00:34:36 +00:00
|
|
|
bvm-nixosmgmt:
|
2021-03-19 16:17:14 +00:00
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: bvm-nixosmgmt
|
2021-03-28 00:34:36 +00:00
|
|
|
script: './hack/deploy.sh "bvm-nixosmgmt" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: bvm-nixosmgmt
|
2021-03-19 16:17:14 +00:00
|
|
|
|
2021-03-28 00:34:36 +00:00
|
|
|
frantech-las01:
|
2021-03-19 16:17:14 +00:00
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: frantech-las01
|
2021-03-28 00:34:36 +00:00
|
|
|
script: './hack/deploy.sh "frantech-las01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: frantech-las01
|
2021-03-19 16:17:14 +00:00
|
|
|
|
2021-03-28 00:34:36 +00:00
|
|
|
frantech-lux01:
|
2021-03-19 16:17:14 +00:00
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: frantech-lux01
|
2021-03-28 00:34:36 +00:00
|
|
|
script: './hack/deploy.sh "frantech-lux01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: frantech-lux01
|
2021-03-28 00:34:36 +00:00
|
|
|
|
|
|
|
frantech-nyc01:
|
|
|
|
extends: .deploy
|
2021-03-28 01:31:35 +00:00
|
|
|
resource_group: frantech-nyc01
|
2021-03-28 00:34:36 +00:00
|
|
|
script: './hack/deploy.sh "frantech-nyc01" ""'
|
2021-03-28 01:31:35 +00:00
|
|
|
environment:
|
|
|
|
name: frantech-nyc01
|
2021-03-19 16:17:14 +00:00
|
|
|
|
2020-10-04 01:34:09 +00:00
|
|
|
docker-push:
|
|
|
|
stage: deploy
|
|
|
|
tags:
|
2021-03-20 13:46:39 +00:00
|
|
|
# We run this on cacher instead, because disk space.
|
|
|
|
- cacher
|
2020-10-04 01:36:18 +00:00
|
|
|
script: './hack/dockerpush.sh'
|