infra/.build.yml

22 lines
564 B
YAML
Raw Normal View History

2022-10-29 22:08:47 +01:00
image: nixos/unstable
2022-10-29 22:00:34 +01:00
secrets:
- b0e58bfc-64c4-4b93-9054-b5db47d96a49
- a3f6aa54-9243-4808-b5a5-414644732c02
- 9972d0f8-7159-4057-bb0c-648d8deac791
2022-10-30 09:03:28 +00:00
- a2e02b24-b89f-4d60-8319-c6883b567430
2022-10-29 22:00:34 +01:00
packages:
2022-10-30 08:15:35 +00:00
- nixos.terraform
2022-10-30 08:17:06 +00:00
- nixos.awscli2
2022-10-29 22:00:34 +01:00
sources:
2022-10-29 22:05:32 +01:00
- git@git.sr.ht:~gmem/infra
2022-10-29 22:00:34 +01:00
tasks:
- terraform-plan: |
2022-10-30 09:00:59 +00:00
set +x
2022-10-29 22:00:34 +01:00
aws configure import --csv file://.aws.csv
2022-10-30 09:00:59 +00:00
export AWS_PROFILE=terraform-srht
2022-10-29 22:00:34 +01:00
export VERCEL_API_TOKEN=$(cat ~/.vercel)
2022-10-30 09:00:59 +00:00
set -x
2022-10-29 22:00:34 +01:00
cd infra
2022-10-29 22:13:23 +01:00
terraform -chdir=terraform init
2022-10-29 22:00:34 +01:00
terraform -chdir=terraform plan