depot/.gitlab-ci.yml

161 lines
3.6 KiB
YAML
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
stages:
- build
- deploy
2020-05-08 16:48:34 +00:00
nixCache:
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"
- "nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
- "nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
- "cat ./result/other-systemPathJSON > systems.json"
artifacts:
paths:
- systems.json
expire_in: '30 days'
tags:
- cacher
.deploy:
stage: deploy
needs:
- job: nixCache
artifacts: true
tags:
- deployer
# environment:
# deployment_tier: production
2020-05-09 23:01:47 +00:00
marukuru:
extends: .deploy
resource_group: marukuru
2020-11-05 01:29:26 +00:00
script: './hack/deploy.sh "marukuru" "-p 20022"'
environment:
name: marukuru
2020-05-09 23:01:47 +00:00
clouvider-fra01:
extends: .deploy
resource_group: clouvider-fra01
2020-11-05 01:29:26 +00:00
script: './hack/deploy.sh "clouvider-fra01" ""'
environment:
name: 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" ""'
environment:
name: kusakabe
2020-10-04 01:34:09 +00:00
clouvider-lon01:
extends: .deploy
resource_group: clouvider-lon01
2020-11-05 01:29:26 +00:00
script: './hack/deploy.sh "clouvider-lon01" ""'
environment:
name: clouvider-lon01
2020-11-05 01:29:26 +00:00
totoro:
extends: .deploy
resource_group: totoro
2020-11-05 01:29:26 +00:00
script: './hack/deploy.sh "totoro" ""'
environment:
name: totoro
2020-11-05 01:29:26 +00:00
swann:
extends: .deploy
resource_group: swann
2020-11-05 01:29:26 +00:00
script: './hack/deploy.sh "swann" ""'
environment:
name: swann
2020-12-27 11:28:21 +00:00
etheroute-lon01:
extends: .deploy
resource_group: etheroute-lon01
2020-12-27 11:28:21 +00:00
script: './hack/deploy.sh "etheroute-lon01" ""'
environment:
name: etheroute-lon01
2020-12-27 11:28:21 +00:00
2021-02-09 01:18:06 +00:00
blade-janeway:
extends: .deploy
resource_group: blade-janeway
2021-02-09 01:18:06 +00:00
script: './hack/deploy.sh "blade-janeway" ""'
environment:
name: blade-janeway
2021-02-09 01:18:06 +00:00
# chakotay and kim are not autodeployed because they're usually off.
#blade-chakotay:
# extends: .deploy
# resource_group: blade-chakotay
# script: './hack/deploy.sh "blade-chakotay" ""'
# environment:
# name: blade-chakotay
#
#blade-kim:
# extends: .deploy
# resource_group: blade-kim
# script: './hack/deploy.sh "blade-kim" ""'
# environment:
# name: blade-kim
2021-02-09 01:18:06 +00:00
# paris and tuvok are not autodeployed because they are the routers, and I don't trust myself
#blade-paris:
# extends: .deploy
# resource_group: blade-paris
# script: './hack/deploy.sh "blade-paris" ""'
# environment:
# name: blade-paris
#
#blade-tuvok:
# extends: .deploy
# resource_group: blade-tuvok
# script: './hack/deploy.sh "blade-tuvok" ""'
# environment:
# name: blade-tuvok
2021-02-09 01:18:06 +00:00
blade-torres:
extends: .deploy
resource_group: blade-torres
2021-02-09 01:18:06 +00:00
script: './hack/deploy.sh "blade-torres" ""'
environment:
name: blade-torres
2021-02-09 01:18:06 +00:00
bvm-nixosmgmt:
extends: .deploy
resource_group: bvm-nixosmgmt
script: './hack/deploy.sh "bvm-nixosmgmt" ""'
environment:
name: bvm-nixosmgmt
frantech-las01:
extends: .deploy
resource_group: frantech-las01
script: './hack/deploy.sh "frantech-las01" ""'
environment:
name: frantech-las01
frantech-lux01:
extends: .deploy
resource_group: frantech-lux01
script: './hack/deploy.sh "frantech-lux01" ""'
environment:
name: frantech-lux01
frantech-nyc01:
extends: .deploy
resource_group: frantech-nyc01
script: './hack/deploy.sh "frantech-nyc01" ""'
environment:
name: frantech-nyc01
2020-10-04 01:34:09 +00:00
docker-push:
stage: deploy
tags:
# We run this on cacher instead, because disk space.
- cacher
script: './hack/dockerpush.sh'