Skip to content

Modern Docker Management, Designed for Everyone

chore: use depot buildx driver

Kyle Mendell2da54136b712
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.yml
index 24a5cbef8..4a66850b9 100644
--- a/.github/workflows/build-next-images.yml
+++ b/.github/workflows/build-next-images.yml
@@ -40,6 +40,9 @@ jobs:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
+ - name: Set up Depot CLI
+ uses: depot/setup-action@v1
+
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -52,6 +55,11 @@ jobs:
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+ - name: Setup depot buildx driver
+ id: setup-buildx-driver
+ run: |
+ depot configure-docker
+
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index fcbcae213..c407bd821 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -171,10 +171,6 @@ dockers_v2:
'com.getarcaneapp.arcane.server': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
- retry:
- attempts: 5
- delay: 5s
- max_delay: 120s
- id: arcane-agent-next
ids:
@@ -203,10 +199,6 @@ dockers_v2:
'com.getarcaneapp.arcane.server': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
- retry:
- attempts: 5
- delay: 5s
- max_delay: 120s
- id: arcane-next-distroless
ids:
@@ -235,10 +227,6 @@ dockers_v2:
'com.getarcaneapp.arcane.server': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
- retry:
- attempts: 5
- delay: 5s
- max_delay: 120s
- id: arcane-agent-next-distroless
ids:
@@ -267,10 +255,6 @@ dockers_v2:
'com.getarcaneapp.arcane.server': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
- retry:
- attempts: 5
- delay: 5s
- max_delay: 120s
changelog:
disable: '{{ if index .Env "SKIP_CHANGELOG" }}true{{ end }}'
diff --git a/docker/next-builds/Dockerfile-agent-distroless b/docker/next-builds/Dockerfile-agent-distroless
index 7f78dcb58..cfa5bfff2 100644
--- a/docker/next-builds/Dockerfile-agent-distroless
+++ b/docker/next-builds/Dockerfile-agent-distroless
@@ -5,7 +5,7 @@ ARG TARGETVARIANT
WORKDIR /app
-COPY arcane-agent ./arcane-agent
+COPY linux/${TARGETARCH}/${TARGETVARIANT}/arcane-agent ./arcane-agent
ENV ENVIRONMENT=production \
AGENT_MODE=true \
diff --git a/docker/next-builds/Dockerfile-agent-static b/docker/next-builds/Dockerfile-agent-static
index 4514dec5f..dd5d99003 100644
--- a/docker/next-builds/Dockerfile-agent-static
+++ b/docker/next-builds/Dockerfile-agent-static
@@ -7,7 +7,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata curl
RUN mkdir -p /app/data
-COPY arcane-agent ./arcane-agent
+COPY linux/${TARGETARCH}/${TARGETVARIANT}/arcane-agent ./arcane-agent
ENV ENVIRONMENT=production \
AGENT_MODE=true \
diff --git a/docker/next-builds/Dockerfile-next-distroless b/docker/next-builds/Dockerfile-next-distroless
index 01c108e62..78714607b 100644
--- a/docker/next-builds/Dockerfile-next-distroless
+++ b/docker/next-builds/Dockerfile-next-distroless
@@ -5,7 +5,7 @@ ARG TARGETVARIANT
WORKDIR /app
-COPY arcane ./arcane
+COPY linux/${TARGETARCH}/${TARGETVARIANT}/arcane ./arcane
ENV ENVIRONMENT=production
ENV GIN_MODE=release
diff --git a/docker/next-builds/Dockerfile-static b/docker/next-builds/Dockerfile-static
index 08a982d7b..a99410ed2 100644
--- a/docker/next-builds/Dockerfile-static
+++ b/docker/next-builds/Dockerfile-static
@@ -7,7 +7,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata curl
RUN mkdir -p /app/data
-COPY arcane ./arcane
+COPY linux/${TARGETARCH}/${TARGETVARIANT}/arcane ./arcane
ENV ENVIRONMENT=production
ENV GIN_MODE=release