Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: build armv7 containers for next image

Kyle Mendell5d1f0d6fef39
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.yml
index efc2eb395..c492270fb 100644
--- a/.github/workflows/build-next-images.yml
+++ b/.github/workflows/build-next-images.yml
@@ -56,6 +56,11 @@ jobs:
run: |
VERSION=next REVISION=${{ github.sha }} ./scripts/github/build-binaries.sh --agent
+ - name: List built binaries
+ run: |
+ echo "Listing backend/.bin/:"
+ ls -la backend/.bin/ || echo "Directory not found"
+
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
@@ -98,7 +103,7 @@ jobs:
uses: depot/build-push-action@v1
with:
context: .
- platforms: linux/amd64,linux/arm64
+ platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.image-name.outputs.value }}:next
file: docker/Dockerfile-static
@@ -141,7 +146,7 @@ jobs:
uses: depot/build-push-action@v1
with:
context: .
- platforms: linux/amd64,linux/arm64
+ platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.image-name.outputs.value }}:next
file: docker/Dockerfile-agent-static
diff --git a/docker/Dockerfile-agent-static b/docker/Dockerfile-agent-static
index d13b71b72..a8fb3b398 100644
--- a/docker/Dockerfile-agent-static
+++ b/docker/Dockerfile-agent-static
@@ -1,6 +1,7 @@
FROM alpine:3
ARG TARGETARCH
+ARG TARGETVARIANT
ARG VERSION="dev"
ARG REVISION="unknown"
@@ -8,7 +9,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata curl
RUN mkdir -p /app/data
-COPY ./backend/.bin/arcane-agent-linux-${TARGETARCH} ./arcane-agent
+COPY ./backend/.bin/arcane-agent-linux-${TARGETARCH}${TARGETVARIANT} ./arcane-agent
ENV ENVIRONMENT=production \
AGENT_MODE=true \
diff --git a/docker/Dockerfile-static b/docker/Dockerfile-static
index 12b383d76..64450bdd9 100644
--- a/docker/Dockerfile-static
+++ b/docker/Dockerfile-static
@@ -1,6 +1,7 @@
FROM alpine:3
ARG TARGETARCH
+ARG TARGETVARIANT
ARG VERSION="dev"
ARG REVISION="unknown"
@@ -8,7 +9,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata curl
RUN mkdir -p /app/data
-COPY ./backend/.bin/arcane-linux-${TARGETARCH} ./arcane
+COPY ./backend/.bin/arcane-linux-${TARGETARCH}${TARGETVARIANT} ./arcane
ENV ENVIRONMENT=production
ENV GIN_MODE=release