You've already forked terraform-image
generated from public/repo-template
This commit is contained in:
15
.gitea/workflows/build.yaml
Normal file
15
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Build docker image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
workflow_dispatch: { }
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build docker image
|
||||||
|
uses: public/ci-templates/.gitea/workflows/docker_build.yaml@v1
|
||||||
|
with:
|
||||||
|
registry_user: ${{ vars.REGISTRY_USER }}
|
||||||
|
secrets:
|
||||||
|
registry_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM git.romalex.cc/public/ci-image:v1
|
||||||
|
|
||||||
|
ENV TERRAFORM_VERSION=1.12.2
|
||||||
|
ENV TFLINT_VERSION=v0.58.1
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
cd /tmp && \
|
||||||
|
wget "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
|
||||||
|
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin && \
|
||||||
|
chmod +x /usr/local/bin/terraform && \
|
||||||
|
wget "https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/tflint_linux_amd64.zip" && \
|
||||||
|
unzip tflint_linux_amd64.zip -d /usr/local/bin && \
|
||||||
|
chmod +x /usr/local/bin/tflint && \
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
Reference in New Issue
Block a user