Merge branch 'getarcaneapp:main' into main #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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-16 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 25 | |
| cache: pnpm | |
| - name: Set up Depot CLI | |
| uses: depot/setup-action@v1 | |
| - name: Install frontend deps | |
| run: pnpm -C frontend install --frozen-lockfile | |
| - name: Build frontend | |
| run: pnpm -C frontend build | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: backend/go.mod | |
| cache-dependency-path: backend/go.sum | |
| - name: Build manager and agent binaries | |
| run: | | |
| chmod +x ./scripts/github/build-binaries.sh | |
| VERSION=next REVISION=${{ github.sha }} ./scripts/github/build-binaries.sh --next-builds | |
| - name: List built binaries | |
| run: | | |
| echo "Listing backend/.bin/:" | |
| ls -la backend/.bin/ || echo "Directory not found" | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Resolve Docker image names | |
| id: image-names | |
| run: | | |
| REPO_OWNER=${{ github.repository_owner }} | |
| echo "manager=ghcr.io/${REPO_OWNER,,}/arcane" >> $GITHUB_OUTPUT | |
| echo "agent=ghcr.io/${REPO_OWNER,,}/arcane-headless" >> $GITHUB_OUTPUT | |
| - name: Build and push manager image | |
| uses: depot/build-push-action@v1 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| push: true | |
| tags: ${{ steps.image-names.outputs.manager }}:next | |
| file: docker/Dockerfile-static | |
| build-args: | | |
| VERSION=next | |
| REVISION=${{ github.sha }} | |
| - name: Build and push agent image | |
| uses: depot/build-push-action@v1 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| push: true | |
| tags: ${{ steps.image-names.outputs.agent }}:next | |
| file: docker/Dockerfile-agent-static | |
| build-args: | | |
| VERSION=next | |
| REVISION=${{ github.sha }} |