init
All checks were successful
Build docker image / Build docker image (push) Successful in 18s

This commit is contained in:
2025-11-11 02:46:14 +03:00
commit fb63da0e5a
2 changed files with 30 additions and 0 deletions

View 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
View 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/*