Compare commits

...

5 Commits

Author SHA1 Message Date
89e0b719d9 chore: move minio binary to /usr/loca/bin
Some checks failed
build-terraform-alpine / build-image (push) Failing after 44s
2025-01-24 03:47:03 +00:00
7e4d48622c feat: add minio support
All checks were successful
build-terraform-alpine / build-image (push) Successful in 1m8s
2025-01-24 02:38:06 +00:00
b4d872bf43 chore: set static architecture
All checks were successful
build-terraform-alpine / build-image (push) Successful in 52s
2025-01-23 23:11:53 +00:00
6a250ecfb1 Revert "chore: move architecture check to host container"
This reverts commit 2bf4cfa8c3.
2025-01-23 22:56:17 +00:00
2bf4cfa8c3 chore: move architecture check to host container 2025-01-23 22:56:02 +00:00
2 changed files with 6 additions and 8 deletions

View File

@@ -10,7 +10,8 @@ jobs:
uses: actions/checkout@v4
- name: Build Image
run: |
docker build --build-arg PRODUCT=terraform --build-arg VERSION=1.10.5 -t gitea.jrdn.dev/${{vars.REPO_USERNAME}}/terraform-alpine:latest .
docker build --build-arg PRODUCT=terraform --build-arg VERSION=1.10.5 --build-arg ARCH=arm64 \
-t gitea.jrdn.dev/${{vars.REPO_USERNAME}}/terraform-alpine:latest .
- name: Authenticate to Container Registry
run: |
docker login -u ${{vars.REPO_USERNAME}} -p ${{secrets.REPO_TOKEN}} gitea.jrdn.dev

View File

@@ -2,15 +2,12 @@ FROM alpine:latest
ARG PRODUCT
ARG VERSION
ARG ARCH
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
ARCH="amd64"; \
elif [ "$ARCH" = "aarch64" ]; then \
ARCH="${ARCH}"; \
fi
RUN apk add --no-cache git npm bash curl
RUN apk add --no-cache git npm bash
RUN curl https://dl.min.io/client/mc/release/linux-arm64/mc -o /usr/local/bin/mc
RUN chmod +x /usr/local/bin/mc
RUN apk add --update --virtual .deps --no-cache gnupg && \
cd /tmp && \