name: Build excalidraw-library # ADR-0002 / no-local-builds: excalidraw-library (infra-owned Go app behind # draw.viktorbarzin.me) builds off-infra on GHA → private ghcr; Keel polls # ghcr:latest and rolls the deployment. Replaces the manual DockerHub pushes # (viktorbarzin/excalidraw-library:v4 stays frozen as the rollback image). on: push: branches: [master] paths: - 'stacks/excalidraw/project/**' workflow_dispatch: {} permissions: contents: read packages: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.21' - run: go test ./... working-directory: stacks/excalidraw/project - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: stacks/excalidraw/project platforms: linux/amd64 provenance: false push: true tags: | ghcr.io/viktorbarzin/excalidraw-library:latest ghcr.io/viktorbarzin/excalidraw-library:${{ github.sha }}