add gitattributes with git-crypt

This commit is contained in:
viktorbarzin 2021-02-13 02:10:39 +00:00
parent ef38f3b940
commit 53fa7b58d2
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 97 additions and 10 deletions

View file

@ -3,14 +3,13 @@ type: kubernetes
name: default
steps:
- name: test
- name: Get terraform files
image: alpine
# environment:
# kek:
# from_secret: tfstate
commands:
- "apk update && apk add jq curl perl"
# - "sleep 900"
- "apk update && apk add jq curl"
- |
curl -k https://kubernetes:6443/api/v1/namespaces/drone/configmaps/tfstate -H "Authorization:Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | jq -r .data.tfstate | base64 -d | gzip -d > /terraform.tfstate
- |
@ -26,7 +25,14 @@ steps:
- name: Terraform apply
image: hashicorp/terraform:latest
commands:
- "terraform init && terraform plan"
- "terraform init"
- "terraform plan -target=module.kubernetes_cluster"
- name: Update configmap
image: alpine
commands:
- "apk update && apk add curl"
- "head terraform.tfstate"
# plan: true
# root_dir: "/data/src"
# var_files: