Compare commits

..

3 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
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 10 additions and 10 deletions

View File

@@ -8,9 +8,17 @@ jobs:
steps: steps:
- name: Check out - name: Check out
uses: actions/checkout@v4 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 - name: Build Image
run: | 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 \
-t gitea.jrdn.dev/${{vars.REPO_USERNAME}}/terraform-alpine:latest .
- name: Authenticate to Container Registry - name: Authenticate to Container Registry
run: | run: |
docker login -u ${{vars.REPO_USERNAME}} -p ${{secrets.REPO_TOKEN}} gitea.jrdn.dev docker login -u ${{vars.REPO_USERNAME}} -p ${{secrets.REPO_TOKEN}} gitea.jrdn.dev

View File

@@ -2,15 +2,7 @@ FROM alpine:latest
ARG PRODUCT ARG PRODUCT
ARG VERSION ARG VERSION
ARG ARCH
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
ARCH="amd64"; \
elif [ "$ARCH" = "aarch64" ]; then \
ARCH="${ARCH}"; \
fi
RUN echo ${ARCH}
RUN apk add --no-cache git npm bash RUN apk add --no-cache git npm bash