ci: fix validate pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-05-26 23:41:24 +02:00
parent e6ae06dbbe
commit daed04488a

View File

@@ -43,26 +43,25 @@ environment:
TF_IN_AUTOMATION: "1" TF_IN_AUTOMATION: "1"
steps: steps:
- name: get terraform - name: get bash
image: hashicorp/terraform:1.1.8 image: ubuntu:22.04
commands: commands:
- mv /bin/terraform . - mv /usr/bin/bash .
- name: validate - name: validate
image: ubuntu:22.04 image: hashicorp/terraform:1.1.8
commands: commands:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 755 ~/.ssh - chmod 755 ~/.ssh
- echo "$${CI_SSH_KEY}" | base64 -d > ~/.ssh/id_rsa - echo "$${CI_SSH_KEY}" | base64 -d > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- mv terraform /bin/terraform - ./bash scripts/validate.sh
- scripts/validate.sh
environment: environment:
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
CI_SSH_KEY: CI_SSH_KEY:
from_secret: ci-ssh-key from_secret: ci-ssh-key
--- ---
kind: signature kind: signature
hmac: fe3dd25a32f51ba75f0e1aac4e8d4708fdac266a06ec4b3dbb4b8656f42a84ec hmac: c18cacad8e1171a34ecd8fc448d36384b984740b79099415dd8df028f729095b
... ...