This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -15,13 +15,7 @@ steps:
|
||||
- name: get terraform
|
||||
image: hashicorp/terraform:1.1.8
|
||||
commands:
|
||||
- mv /bin/terraform .
|
||||
|
||||
- name: Generate docs
|
||||
image: ubuntu:22.04
|
||||
commands:
|
||||
- mv terraform /bin/terraform
|
||||
- apt-get update && apt-get -y install git wget
|
||||
- apk add bash wget
|
||||
- wget https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz -O - | tar -xz terraform-docs -C /usr/local/bin
|
||||
- scripts/format.sh
|
||||
- scripts/generate-docs.sh
|
||||
@@ -43,19 +37,14 @@ environment:
|
||||
TF_IN_AUTOMATION: "1"
|
||||
|
||||
steps:
|
||||
- name: get terraform
|
||||
- name: validate
|
||||
image: hashicorp/terraform:1.1.8
|
||||
commands:
|
||||
- mv /bin/terraform .
|
||||
|
||||
- name: validate
|
||||
image: ubuntu:22.04
|
||||
commands:
|
||||
- apk add bash
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 755 ~/.ssh
|
||||
- echo "$${CI_SSH_KEY}" | base64 -d > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- mv terraform /bin/terraform
|
||||
- scripts/validate.sh
|
||||
environment:
|
||||
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
|
||||
@@ -63,6 +52,6 @@ steps:
|
||||
from_secret: ci-ssh-key
|
||||
---
|
||||
kind: signature
|
||||
hmac: fe3dd25a32f51ba75f0e1aac4e8d4708fdac266a06ec4b3dbb4b8656f42a84ec
|
||||
hmac: 52436fc00e21987140ed4e5f02e97954410cfe3b6d91d885a06c7d978200ac41
|
||||
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user