Restructured calling tfci

This commit is contained in:
2023-10-31 15:05:34 +01:00
parent e00a92ee0b
commit 3a69cbff39
2 changed files with 2 additions and 4 deletions

View File

@ -3,4 +3,4 @@ FROM hashicorp/tfci
LABEL maintainer="docker@2martens.de" description="Terraform for Drone" LABEL maintainer="docker@2martens.de" description="Terraform for Drone"
COPY tool.sh /usr/local/bin COPY tool.sh /usr/local/bin
RUN chmod +x /usr/local/bin/tool.sh RUN chmod +x /usr/local/bin/tool.sh
ENTRYPOINT ["tool.sh"] ENTRYPOINT ["/usr/local/bin/tool.sh"]

View File

@ -1,5 +1,3 @@
#!/bin/bash #!/bin/bash
TF_API_TOKEN=$PLUGIN_API_TOKEN\ /usr/local/bin/tfci --organization="$PLUGIN_CLOUD_ORGANIZATION" --token="$PLUGIN_API_TOKEN" run $PLUGIN_ARGS
TF_CLOUD_ORGANIZATION=$PLUGIN_CLOUD_ORGANIZATION\
tfci run $PLUGIN_ARGS