Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: run next workflow on depot ci

Kyle Mendellf89a46bb4653
diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.yml
new file mode 100644
index 000000000..0b59e1140
--- /dev/null
+++ b/.depot/workflows/build-next-images.yml
@@ -0,0 +1,167 @@
+name: Build Next Images
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+concurrency:
+ group: build-next-images
+ cancel-in-progress: true
+
+permissions:
+ contents: read
+ packages: write
+ id-token: write
+
+jobs:
+ build-next-images:
+ runs-on: depot-ubuntu-24.04-8
+
+ env:
+ MANAGER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/arcane
+ AGENT_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/arcane-headless
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+
+ - name: Setup PNPM
+ uses: pnpm/action-setup@v5
+ with:
+ run_install: false
+
+ - name: Setup Just
+ uses: extractions/setup-just@v3
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v6
+ with:
+ node-version: 25
+ cache: pnpm
+
+ - name: Set up Go
+ uses: actions/setup-go@v6
+ with:
+ go-version-file: backend/go.mod
+ cache-dependency-path: backend/go.sum
+
+ - name: Set up Depot CLI
+ uses: depot/setup-action@v1
+ env:
+ DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
+
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v4
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Setup depot buildx driver
+ id: setup-buildx-driver
+ run: |
+ depot configure-docker
+
+ - name: Set Short Git Commit SHA
+ id: vars
+ run: |
+ echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+
+ - name: Run GoReleaser
+ uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 #v7.0.0
+ with:
+ distribution: goreleaser-pro
+ version: '~> 2'
+ args: release --clean --skip=sign,announce,validate,nfpm,homebrew
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BUILD_NEXT: 'true'
+ SKIP_RELEASE: 'true'
+ SKIP_CHANGELOG: 'true'
+ GORELEASER_CURRENT_TAG: next-static-${{ steps.vars.outputs.sha_short }}
+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
+ R2_ACCESS_KEY: ${{ secrets.R2_ACCESS_KEY }}
+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
+ AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
+ R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
+ R2_BUCKET: ${{ secrets.R2_BUCKET }}
+
+ - name: Manager image metadata
+ id: manager-meta
+ uses: docker/metadata-action@v6
+ with:
+ images: ${{ env.MANAGER_IMAGE_NAME }}
+ tags: |
+ type=raw,value=next
+ type=raw,value=next-${{ steps.vars.outputs.sha_short }}
+ labels: |
+ org.opencontainers.image.authors=OFKM Technologies
+ org.opencontainers.image.url=https://github.com/getarcaneapp/arcane
+ org.opencontainers.image.documentation=https://github.com/getarcaneapp/arcane/blob/main/README.md
+ org.opencontainers.image.source=https://github.com/getarcaneapp/arcane
+ org.opencontainers.image.version=next-${{ steps.vars.outputs.sha_short }}
+ org.opencontainers.image.revision=${{ github.sha }}
+ org.opencontainers.image.licenses=BSD-3-Clause
+ org.opencontainers.image.ref.name=arcane
+ org.opencontainers.image.title=Arcane
+ org.opencontainers.image.description=Modern Docker Management, Made for Everyone
+ com.getarcaneapp.arcane=true
+
+ - name: Build and push manager image
+ id: manager-build
+ uses: depot/build-push-action@v1
+ with:
+ context: .
+ file: docker/Dockerfile
+ platforms: linux/amd64,linux/arm64,linux/arm/v7
+ push: true
+ tags: ${{ steps.manager-meta.outputs.tags }}
+ labels: ${{ steps.manager-meta.outputs.labels }}
+ build-args: |
+ VERSION=next-${{ steps.vars.outputs.sha_short }}
+ REVISION=${{ github.sha }}
+ sbom: true
+ provenance: true
+
+ - name: Agent image metadata
+ id: agent-meta
+ uses: docker/metadata-action@v6
+ with:
+ images: ${{ env.AGENT_IMAGE_NAME }}
+ tags: |
+ type=raw,value=next
+ type=raw,value=next-${{ steps.vars.outputs.sha_short }}
+ labels: |
+ org.opencontainers.image.authors=OFKM Technologies
+ org.opencontainers.image.url=https://github.com/getarcaneapp/arcane
+ org.opencontainers.image.documentation=https://github.com/getarcaneapp/arcane/blob/main/README.md
+ org.opencontainers.image.source=https://github.com/getarcaneapp/arcane
+ org.opencontainers.image.version=next-${{ steps.vars.outputs.sha_short }}
+ org.opencontainers.image.revision=${{ github.sha }}
+ org.opencontainers.image.licenses=BSD-3-Clause
+ org.opencontainers.image.ref.name=arcane-agent
+ org.opencontainers.image.title=Arcane Agent
+ org.opencontainers.image.description=Arcane Agent
+ com.getarcaneapp.arcane=true
+ com.getarcaneapp.arcane.agent=true
+
+ - name: Build and push agent image
+ id: agent-build
+ uses: depot/build-push-action@v1
+ with:
+ context: .
+ file: docker/Dockerfile-agent
+ platforms: linux/amd64,linux/arm64,linux/arm/v7
+ push: true
+ tags: ${{ steps.agent-meta.outputs.tags }}
+ labels: ${{ steps.agent-meta.outputs.labels }}
+ build-args: |
+ VERSION=next-${{ steps.vars.outputs.sha_short }}
+ REVISION=${{ github.sha }}
+ sbom: true
+ provenance: true
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 4f4977577..cdfd0640a 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
-# vim: set ts=2 sw=2 tw=0 fo=cnqoj
-
+# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
+pro: true
project_name: arcane
@@ -23,10 +23,10 @@ builds:
goarch:
- amd64
- arm64
- - "386"
+ - '386'
- arm
goarm:
- - "7"
+ - '7'
goamd64:
- v1
go386:
@@ -39,7 +39,7 @@ builds:
- -X github.com/getarcaneapp/arcane/backend/internal/config.BuildTime={{ .Date }}
flags:
- -trimpath
- mod_timestamp: "{{ .CommitTimestamp }}"
+ mod_timestamp: '{{ .CommitTimestamp }}'
- id: arcane-agent
main: ./cmd/main.go
@@ -55,10 +55,10 @@ builds:
goarch:
- amd64
- arm64
- - "386"
+ - '386'
- arm
goarm:
- - "7"
+ - '7'
goamd64:
- v1
go386:
@@ -71,7 +71,7 @@ builds:
- -X github.com/getarcaneapp/arcane/backend/internal/config.BuildTime={{ .Date }}
flags:
- -trimpath
- mod_timestamp: "{{ .CommitTimestamp }}"
+ mod_timestamp: '{{ .CommitTimestamp }}'
- id: arcane-cli
main: .
@@ -85,10 +85,10 @@ builds:
goarch:
- amd64
- arm64
- - "386"
+ - '386'
- arm
goarm:
- - "7"
+ - '7'
goamd64:
- v1
go386:
@@ -100,7 +100,7 @@ builds:
- -X github.com/getarcaneapp/arcane/cli/internal/config.Revision={{ .ShortCommit }}
flags:
- -trimpath
- mod_timestamp: "{{ .CommitTimestamp }}"
+ mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- id: arcane-cli-archive
@@ -108,14 +108,14 @@ archives:
- arcane-cli
formats:
- tar.gz
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
+ name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}'
- id: default
ids:
- arcane
- arcane-agent
formats:
- binary
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
+ name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}'
upx:
- enabled: true
@@ -130,9 +130,9 @@ upx:
- amd64
- arm64
- arm
- - "386"
+ - '386'
goarm:
- - "7"
+ - '7'
goamd64:
- v1
compress: best
@@ -142,7 +142,7 @@ upx:
nfpms:
- id: arcane-cli
package_name: arcane-cli
- file_name_template: "{{ .ConventionalFileName }}"
+ file_name_template: '{{ .ConventionalFileName }}'
ids:
- arcane-cli
vendor: getarcaneapp
@@ -170,13 +170,13 @@ homebrew_casks:
- arcane-cli-archive
binaries:
- arcane-cli
- description: "Arcane CLI - Modern Docker Management, Designed for Everyone."
- homepage: "https://getarcane.app"
+ description: 'Arcane CLI - Modern Docker Management, Designed for Everyone.'
+ homepage: 'https://getarcane.app'
skip_upload: '{{ if eq (index .Env "BUILD_NEXT") "true" }}true{{ end }}'
repository:
owner: getarcaneapp
name: homebrew-tap
- commit_msg_template: "chore(brew): update {{ .ProjectName }} to {{ .Tag }}"
+ commit_msg_template: 'chore(brew): update {{ .ProjectName }} to {{ .Tag }}'
dockers_v2:
- id: arcane-next
@@ -184,25 +184,25 @@ dockers_v2:
- arcane
dockerfile: docker/next-builds/Dockerfile-static
images:
- - "ghcr.io/getarcaneapp/arcane"
+ - 'ghcr.io/getarcaneapp/arcane'
tags:
- - "next-static"
- - "{{.Tag}}"
+ - 'next-static'
+ - '{{.Tag}}'
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
labels:
- "org.opencontainers.image.authors": "OFKM Technologies"
- "org.opencontainers.image.url": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.documentation": "https://github.com/getarcaneapp/arcane/blob/main/README.md"
- "org.opencontainers.image.source": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.version": "{{.Version}}"
- "org.opencontainers.image.revision": "{{.FullCommit}}"
- "org.opencontainers.image.licenses": "BSD-3-Clause"
- "org.opencontainers.image.title": "Arcane"
- "org.opencontainers.image.description": "Modern Docker Management, Made for Everyone"
- "com.getarcaneapp.arcane": "true"
+ 'org.opencontainers.image.authors': 'OFKM Technologies'
+ 'org.opencontainers.image.url': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.documentation': 'https://github.com/getarcaneapp/arcane/blob/main/README.md'
+ 'org.opencontainers.image.source': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.version': '{{.Version}}'
+ 'org.opencontainers.image.revision': '{{.FullCommit}}'
+ 'org.opencontainers.image.licenses': 'BSD-3-Clause'
+ 'org.opencontainers.image.title': 'Arcane'
+ 'org.opencontainers.image.description': 'Modern Docker Management, Made for Everyone'
+ 'com.getarcaneapp.arcane': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
@@ -211,25 +211,25 @@ dockers_v2:
- arcane-agent
dockerfile: docker/next-builds/Dockerfile-agent-static
images:
- - "ghcr.io/getarcaneapp/arcane-headless"
+ - 'ghcr.io/getarcaneapp/arcane-headless'
tags:
- - "next-static"
- - "{{.Tag}}"
+ - 'next-static'
+ - '{{.Tag}}'
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
labels:
- "org.opencontainers.image.authors": "OFKM Technologies"
- "org.opencontainers.image.url": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.documentation": "https://github.com/getarcaneapp/arcane/blob/main/README.md"
- "org.opencontainers.image.source": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.version": "{{.Version}}"
- "org.opencontainers.image.revision": "{{.FullCommit}}"
- "org.opencontainers.image.licenses": "BSD-3-Clause"
- "org.opencontainers.image.title": "Arcane Agent"
- "org.opencontainers.image.description": "Arcane Agent"
- "com.getarcaneapp.arcane.agent": "true"
+ 'org.opencontainers.image.authors': 'OFKM Technologies'
+ 'org.opencontainers.image.url': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.documentation': 'https://github.com/getarcaneapp/arcane/blob/main/README.md'
+ 'org.opencontainers.image.source': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.version': '{{.Version}}'
+ 'org.opencontainers.image.revision': '{{.FullCommit}}'
+ 'org.opencontainers.image.licenses': 'BSD-3-Clause'
+ 'org.opencontainers.image.title': 'Arcane Agent'
+ 'org.opencontainers.image.description': 'Arcane Agent'
+ 'com.getarcaneapp.arcane.agent': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
@@ -238,25 +238,25 @@ dockers_v2:
- arcane
dockerfile: docker/next-builds/Dockerfile-next-distroless
images:
- - "ghcr.io/getarcaneapp/arcane"
+ - 'ghcr.io/getarcaneapp/arcane'
tags:
- - "next-distroless"
- - "{{.Tag}}-distroless"
+ - 'next-distroless'
+ - '{{.Tag}}-distroless'
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
labels:
- "org.opencontainers.image.authors": "OFKM Technologies"
- "org.opencontainers.image.url": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.documentation": "https://github.com/getarcaneapp/arcane/blob/main/README.md"
- "org.opencontainers.image.source": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.version": "{{.Version}}"
- "org.opencontainers.image.revision": "{{.FullCommit}}"
- "org.opencontainers.image.licenses": "BSD-3-Clause"
- "org.opencontainers.image.title": "Arcane"
- "org.opencontainers.image.description": "Modern Docker Management, Made for Everyone"
- "com.getarcaneapp.arcane": "true"
+ 'org.opencontainers.image.authors': 'OFKM Technologies'
+ 'org.opencontainers.image.url': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.documentation': 'https://github.com/getarcaneapp/arcane/blob/main/README.md'
+ 'org.opencontainers.image.source': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.version': '{{.Version}}'
+ 'org.opencontainers.image.revision': '{{.FullCommit}}'
+ 'org.opencontainers.image.licenses': 'BSD-3-Clause'
+ 'org.opencontainers.image.title': 'Arcane'
+ 'org.opencontainers.image.description': 'Modern Docker Management, Made for Everyone'
+ 'com.getarcaneapp.arcane': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
@@ -265,25 +265,25 @@ dockers_v2:
- arcane-agent
dockerfile: docker/next-builds/Dockerfile-agent-distroless
images:
- - "ghcr.io/getarcaneapp/arcane-headless"
+ - 'ghcr.io/getarcaneapp/arcane-headless'
tags:
- - "next-distroless"
- - "{{.Tag}}-distroless"
+ - 'next-distroless'
+ - '{{.Tag}}-distroless'
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
labels:
- "org.opencontainers.image.authors": "OFKM Technologies"
- "org.opencontainers.image.url": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.documentation": "https://github.com/getarcaneapp/arcane/blob/main/README.md"
- "org.opencontainers.image.source": "https://github.com/getarcaneapp/arcane"
- "org.opencontainers.image.version": "{{.Version}}"
- "org.opencontainers.image.revision": "{{.FullCommit}}"
- "org.opencontainers.image.licenses": "BSD-3-Clause"
- "org.opencontainers.image.title": "Arcane Agent"
- "org.opencontainers.image.description": "Arcane Agent"
- "com.getarcaneapp.arcane.agent": "true"
+ 'org.opencontainers.image.authors': 'OFKM Technologies'
+ 'org.opencontainers.image.url': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.documentation': 'https://github.com/getarcaneapp/arcane/blob/main/README.md'
+ 'org.opencontainers.image.source': 'https://github.com/getarcaneapp/arcane'
+ 'org.opencontainers.image.version': '{{.Version}}'
+ 'org.opencontainers.image.revision': '{{.FullCommit}}'
+ 'org.opencontainers.image.licenses': 'BSD-3-Clause'
+ 'org.opencontainers.image.title': 'Arcane Agent'
+ 'org.opencontainers.image.description': 'Arcane Agent'
+ 'com.getarcaneapp.arcane.agent': 'true'
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
sbom: true
@@ -327,11 +327,11 @@ announce:
discord:
enabled: true
# Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'.
- message_template: "Arcane version {{.Tag}} has been released! Checkout the changelog at {{ .ReleaseURL }}"
- author: "Github Actions"
+ message_template: 'Arcane version {{.Tag}} has been released! Checkout the changelog at {{ .ReleaseURL }}'
+ author: 'Github Actions'
# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
- color: "9320959"
- icon_url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
+ color: '9320959'
+ icon_url: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png'
release:
github:
@@ -345,7 +345,7 @@ release:
prerelease: auto
make_latest: true
mode: keep-existing
- name_template: "{{.Tag}}"
+ name_template: '{{.Tag}}'
footer: |
---