Change plugin usage

This commit is contained in:
2023-10-31 22:31:13 +01:00
parent dba0989a92
commit f531b04c19
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,8 @@
FROM hashicorp/tfci
FROM amazonlinux:2023
RUN yum install -y yum-utils shadow-utils
RUN yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
RUN yum -y install terraform
LABEL maintainer="docker@2martens.de" description="Terraform for Drone"
COPY tool.sh /usr/local/bin

View File

@ -12,7 +12,6 @@ This Drone plugin uses the Terraform CLI and makes it compatible with Drone.
image: 2martens/terraform-drone-plugin
settings:
api_token: <api_token>
cloud_organization: <cloud_organization>
path: <path relative to Git repo>
args: <args>
```
@ -39,8 +38,6 @@ steps:
settings:
api_token:
from_secret: api_token
cloud_organization:
from_secret: cloud_organization
path: terraform
args: plan
```

View File

@ -1,6 +1,5 @@
#!/bin/sh
cd "$PLUGIN_PATH" && \
/usr/local/bin/tfci \
-organization="$PLUGIN_CLOUD_ORGANIZATION" \
-token="$PLUGIN_API_TOKEN" $PLUGIN_ARGS
TF_TOKEN_app_terraform_io=$PLUGIN_API_TOKEN \
terraform $PLUGIN_ARGS