Skip to content

[GitHub Action] Add a trigger for branch #7

[GitHub Action] Add a trigger for branch

[GitHub Action] Add a trigger for branch #7

name: Build container release images
on:
push:
tags:
- '*'
branches:
- 'mathtodon'
permissions:
contents: read
packages: write
jobs:
build-image:
uses: ./.github/workflows/build-container-image.yml
with:
platforms: linux/amd64
use_native_arm64_builder: true
push_to_images: |
Nyoho/mathtodon
ghcr.io/Nyoho/mathtodon
# Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
cache: false
flavor: |
latest=false
tags: |
type=edge,branch=mathtodon
type=pep440,pattern={{raw}}
type=pep440,pattern=v{{major}}.{{minor}}
type=ref,event=tag
type=ref,event=pr
secrets: inherit