Skip to content

Modern Docker Management, Designed for Everyone

chore: fix build args for next images

Kyle Mendell2c3e44a10ddd
diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.yml
index 8f00bc0aa..c6ba987be 100644
--- a/.depot/workflows/build-next-images.yml
+++ b/.depot/workflows/build-next-images.yml
@@ -20,7 +20,7 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
with:
fetch-depth: 0
@@ -77,22 +77,30 @@ jobs:
id: next-version
run: just next-image-version github-output
+ - name: Capture frontend build versions
+ id: frontend-versions
+ run: |
+ echo "node_version=$(node --version)" >> "$GITHUB_OUTPUT"
+ echo "sveltekit_version=$(pnpm -C frontend exec node -p 'require("@sveltejs/kit/package.json").version')" >> "$GITHUB_OUTPUT"
+
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 #v7.0.0
with:
distribution: goreleaser-pro
- version: '~> 2'
+ version: "~> 2"
args: release --clean --nightly --skip=announce,validate,homebrew
env:
GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
- BUILD_NEXT: 'true'
- SKIP_RELEASE: 'true'
- SKIP_CHANGELOG: 'true'
+ BUILD_NEXT: "true"
+ SKIP_RELEASE: "true"
+ SKIP_CHANGELOG: "true"
NEXT_IMAGE_VERSION: ${{ steps.next-version.outputs.version }}
GORELEASER_CURRENT_TAG: ${{ steps.next-version.outputs.image_tag }}
GORELEASER_PREVIOUS_TAG: ${{ steps.next-version.outputs.previous_tag }}
+ NODE_VERSION: ${{ steps.frontend-versions.outputs.node_version }}
+ SVELTEKIT_VERSION: ${{ steps.frontend-versions.outputs.sveltekit_version }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 10e33553a..347441bd1 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -49,6 +49,8 @@ builds:
- -X github.com/getarcaneapp/arcane/backend/v2/internal/config.Version={{ .Version }}
- -X github.com/getarcaneapp/arcane/backend/v2/internal/config.Revision={{ .ShortCommit }}
- -X github.com/getarcaneapp/arcane/backend/v2/internal/config.BuildTime={{ .Date }}
+ - -X github.com/getarcaneapp/arcane/backend/v2/internal/config.NodeVersion={{ envOrDefault "NODE_VERSION" "unknown" }}
+ - -X github.com/getarcaneapp/arcane/backend/v2/internal/config.SvelteKitVersion={{ envOrDefault "SVELTEKIT_VERSION" "unknown" }}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'