fix(og): stop drawing sticker cards in a template built for box art #31
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-and-push | |
| on: | |
| push: | |
| branches: [svelte-kit] | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| packages: write | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: sticker-api | |
| file: docker/go.Dockerfile | |
| args: CMD=api | |
| - name: sticker-migrate | |
| file: docker/go.Dockerfile | |
| args: CMD=migrate | |
| - name: sticker-web | |
| file: docker/nuxt.Dockerfile | |
| args: '' | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: docker/setup-buildx-action@v4 | |
| - uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: ${{ matrix.file }} | |
| build-args: ${{ matrix.args }} | |
| push: true | |
| tags: | | |
| ghcr.io/kunmoe/${{ matrix.name }}:latest | |
| ghcr.io/kunmoe/${{ matrix.name }}:${{ github.sha }} | |
| cache-from: type=gha,scope=${{ matrix.name }} | |
| cache-to: type=gha,mode=max,scope=${{ matrix.name }} | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Dokploy redeploy | |
| env: | |
| WEBHOOK: ${{ secrets.DOKPLOY_WEBHOOK_STICKER }} | |
| run: | | |
| if [ -z "$WEBHOOK" ]; then | |
| echo "DOKPLOY_WEBHOOK_STICKER not set — images pushed to GHCR, skipping redeploy trigger." | |
| exit 0 | |
| fi | |
| curl -fsS -X POST "$WEBHOOK" |