2023-07-18 20:36:12 +09: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:
|
2023-11-28 19:04:40 +09:00
|
|
|
file_to_build: Dockerfile
|
2023-07-18 20:36:12 +09:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-07-19 14:25:59 +09:00
|
|
|
use_native_arm64_builder: false
|
2023-07-18 20:36:12 +09:00
|
|
|
push_to_images: |
|
2023-07-19 14:25:59 +09:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon
|
2023-09-15 06:11:36 +09: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 21:59:50 +09: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 20:36:12 +09:00
|
|
|
flavor: |
|
2023-09-21 23:51:32 +09:00
|
|
|
latest=${{ startsWith(github.ref, 'refs/tags/v4.2.') }}
|
2023-07-18 20:36:12 +09:00
|
|
|
tags: |
|
|
|
|
type=pep440,pattern={{raw}}
|
|
|
|
type=pep440,pattern=v{{major}}.{{minor}}
|
|
|
|
secrets: inherit
|
2023-11-28 19:04:40 +09:00
|
|
|
|
|
|
|
build-image-streaming:
|
|
|
|
if: startsWith(github.ref, 'refs/tags/v4.3.')
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
file_to_build: streaming/Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-12-22 16:45:37 +09:00
|
|
|
use_native_arm64_builder: false
|
2023-11-28 19:04:40 +09:00
|
|
|
push_to_images: |
|
2023-12-22 21:01:08 +09:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon-streaming
|
2023-11-28 19:04:40 +09:00
|
|
|
# Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
|
|
|
|
cache: false
|
|
|
|
# Only tag with latest when ran against the latest stable branch
|
|
|
|
# This needs to be updated after each minor version release
|
|
|
|
flavor: |
|
|
|
|
latest=${{ startsWith(github.ref, 'refs/tags/v4.3.') }}
|
|
|
|
tags: |
|
|
|
|
type=pep440,pattern={{raw}}
|
|
|
|
type=pep440,pattern=v{{major}}.{{minor}}
|
|
|
|
secrets: inherit
|