Compare commits

..

1 Commits

Author SHA1 Message Date
6fdd73c012 chore: move architecture check to build.yaml
Some checks failed
build-terraform-alpine / build-image (push) Failing after 7s
2025-01-23 23:00:35 +00:00
2 changed files with 9 additions and 5 deletions

View File

@@ -8,9 +8,16 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v4
- name: Check Architecture
run: |
if [ "$ARCH" = "x86_64" ]; then \
ARCH="amd64"; \
elif [ "$ARCH" = "aarch64" ]; then \
ARCH="${ARCH}"; \
fi
- name: Build Image
run: |
docker build --build-arg PRODUCT=terraform --build-arg VERSION=1.10.5 --build-arg ARCH=arm64 \
docker build --build-arg PRODUCT=terraform --build-arg VERSION=1.10.5 --build-arg=$ARCH \
-t gitea.jrdn.dev/${{vars.REPO_USERNAME}}/terraform-alpine:latest .
- name: Authenticate to Container Registry
run: |

View File

@@ -4,10 +4,7 @@ ARG PRODUCT
ARG VERSION
ARG ARCH
RUN apk add --no-cache git npm bash curl
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 --no-cache git npm bash
RUN apk add --update --virtual .deps --no-cache gnupg && \
cd /tmp && \