This repository was archived by the owner on Jan 12, 2026. It is now read-only.
build #157
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 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # https://github.com/proxy/docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| - cron: '0 8 */6 * *' # every 6 days to keep cache | |
| push: | |
| branches: | |
| - 'main' | |
| tags: | |
| - '*' | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| env: | |
| DOCKERHUB_SLUG: crazymax/spliit | |
| GHCR_SLUG: ghcr.io/crazy-max/spliit | |
| jobs: | |
| build: | |
| uses: crazy-max/.github/.github/workflows/bake-distribute-mp.yml@0acc187b016a2946786f201397bbcfb2c530ffc7 | |
| permissions: | |
| # same as global permissions | |
| contents: read | |
| # required to push to GHCR | |
| packages: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - | |
| image: crazymax/spliit | |
| login-registry: docker.io | |
| login-username: crazymax | |
| login-secret-key: DOCKER_PASSWORD | |
| - | |
| image: ghcr.io/crazy-max/spliit | |
| login-registry: ghcr.io | |
| login-username: ${{ github.repository_owner }} | |
| login-secret-key: GITHUB_TOKEN | |
| with: | |
| target: image-all | |
| push: ${{ github.event_name != 'pull_request' }} | |
| cache: true | |
| cache-scope: build | |
| meta-image: ${{ matrix.image }} | |
| meta-tags: | | |
| type=match,pattern=(.*)-r,group=1 | |
| type=ref,event=pr | |
| type=edge | |
| meta-labels: | | |
| org.opencontainers.image.title=Spliit | |
| org.opencontainers.image.description=An open source alternative to Splitwise | |
| org.opencontainers.image.vendor=CrazyMax | |
| login-registry: ${{ matrix.login-registry }} | |
| login-username: ${{ matrix.login-username }} | |
| secrets: | |
| login-password: ${{ secrets[matrix.login-secret-key] }} |