commit fb63da0e5ae3bdc2f2cc18ea0351e655a3c897df Author: Fyodor Doletov Date: Tue Nov 11 02:46:14 2025 +0300 init diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..f505b93 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ddfd191 --- /dev/null +++ b/Dockerfile @@ -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/* +