2023-07-18 21:36:12 +10:00
|
|
|
name: Build container release images
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-image:
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
use_native_arm64_builder: true
|
|
|
|
push_to_images: |
|
|
|
|
tootsuite/mastodon
|
|
|
|
ghcr.io/mastodon/mastodon
|
2023-09-15 07:11:36 +10:00
|
|
|
# Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
|
|
|
|
cache: false
|
2023-08-31 22:59:50 +10:00
|
|
|
# Only tag with latest when ran against the latest stable branch
|
|
|
|
# This needs to be updated after each minor version release
|
2023-07-18 21:36:12 +10:00
|
|
|
flavor: |
|
2023-09-22 00:51:32 +10:00
|
|
|
latest=${{ startsWith(github.ref, 'refs/tags/v4.2.') }}
|
2023-07-18 21:36:12 +10:00
|
|
|
tags: |
|
|
|
|
type=pep440,pattern={{raw}}
|
|
|
|
type=pep440,pattern=v{{major}}.{{minor}}
|
|
|
|
secrets: inherit
|