2023-07-18 11:36:12 +00: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
|
2023-07-19 05:25:59 +00:00
|
|
|
use_native_arm64_builder: false
|
2023-07-18 11:36:12 +00:00
|
|
|
push_to_images: |
|
2023-07-19 05:25:59 +00:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon
|
2023-08-31 12:59:50 +00: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 11:36:12 +00:00
|
|
|
flavor: |
|
|
|
|
latest=${{ startsWith(github.ref, 'refs/tags/v4.1.') }}
|
|
|
|
tags: |
|
|
|
|
type=pep440,pattern={{raw}}
|
|
|
|
type=pep440,pattern=v{{major}}.{{minor}}
|
|
|
|
secrets: inherit
|