Changed base image

This commit is contained in:
2023-10-31 14:12:41 +01:00
parent fa2a34ce03
commit 8d4d60afdf
3 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM hashicorp/terraform:1.6.2 FROM hashicorp/tfci
LABEL maintainer="docker@2martens.de" description="Terraform for Drone" LABEL maintainer="docker@2martens.de" description="Terraform for Drone"
RUN mkdir -p /opt/terraform/bin RUN mkdir -p /opt/terraform/bin

View File

@ -11,6 +11,8 @@ This Drone plugin uses the Terraform CLI and makes it compatible with Drone.
- name: Step name - name: Step name
image: 2martens/terraform-drone-plugin image: 2martens/terraform-drone-plugin
settings: settings:
api_token: <api_token>
cloud_organization: <cloud_organization>
args: <args> args: <args>
``` ```
@ -30,14 +32,13 @@ clone:
skip_verify: true skip_verify: true
steps: steps:
- name: login to Terraform cloud
pull: always
image: 2martens/terraform-drone-plugin:1.26.2
settings:
args: login
- name: run plan - name: run plan
pull: always pull: always
image: 2martens/terraform-drone-plugin:1.26.2 image: 2martens/terraform-drone-plugin
settings: settings:
api_token:
from_secret: api_token
cloud_organization:
from_secret: cloud_organization
args: plan args: plan
``` ```

View File

@ -1,3 +1,5 @@
#!/bin/bash #!/bin/bash
terraform $PLUGIN_ARGS TF_API_TOKEN=$PLUGIN_API_TOKEN\
TF_CLOUD_ORGANIZATION=$PLUGIN_CLOUD_ORGANIZATION\
tfci run $PLUGIN_ARGS