mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
change pipeline generation + add tf dockerfile
This commit is contained in:
parent
7910211bf0
commit
6bff3c75dd
@ -2,13 +2,13 @@ FROM alpine:latest
|
|||||||
|
|
||||||
RUN apk add --no-cache curl unzip bash git
|
RUN apk add --no-cache curl unzip bash git
|
||||||
|
|
||||||
ARG TERRAFORM_VERSION=1.14.3
|
ARG TERRAFORM_VERSION=1.5.7
|
||||||
RUN curl -fsSL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o terraform.zip && \
|
RUN curl -fsSL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o terraform.zip && \
|
||||||
unzip terraform.zip -d /usr/local/bin/ && \
|
unzip terraform.zip -d /usr/local/bin/ && \
|
||||||
chmod +x /usr/local/bin/terraform && \
|
chmod +x /usr/local/bin/terraform && \
|
||||||
rm -f terraform.zip
|
rm -f terraform.zip
|
||||||
|
|
||||||
ARG TERRAGRUNT_VERSION=0.98.0
|
ARG TERRAGRUNT_VERSION=0.93.11
|
||||||
RUN curl -fsSL https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 -o /usr/local/bin/terragrunt && \
|
RUN curl -fsSL https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 -o /usr/local/bin/terragrunt && \
|
||||||
chmod +x /usr/local/bin/terragrunt
|
chmod +x /usr/local/bin/terragrunt
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,6 @@ validate-${job_prefix}:
|
|||||||
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
||||||
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
||||||
TG_TF_PATH: "/usr/local/bin/terraform"
|
TG_TF_PATH: "/usr/local/bin/terraform"
|
||||||
TF_WORKSPACE: "default"
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd \${TG_ROOT}
|
- cd \${TG_ROOT}
|
||||||
script:
|
script:
|
||||||
@ -105,7 +104,6 @@ plan-${job_prefix}:
|
|||||||
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
||||||
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
||||||
TG_TF_PATH: "/usr/local/bin/terraform"
|
TG_TF_PATH: "/usr/local/bin/terraform"
|
||||||
TF_WORKSPACE: "default"
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd \${TG_ROOT}
|
- cd \${TG_ROOT}
|
||||||
script:
|
script:
|
||||||
@ -145,7 +143,6 @@ apply-${job_prefix}:
|
|||||||
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
S3_SECRET_KEY: "\${S3_SECRET_KEY}"
|
||||||
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
S3_STATE_BUCKET: "\${S3_STATE_BUCKET}"
|
||||||
TG_TF_PATH: "/usr/local/bin/terraform"
|
TG_TF_PATH: "/usr/local/bin/terraform"
|
||||||
TF_WORKSPACE: "default"
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd \${TG_ROOT}
|
- cd \${TG_ROOT}
|
||||||
script:
|
script:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user