mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 13:28:07 +01:00
b8209c3b96
Conflicts: - `config/initializers/content_security_policy.rb`: Upstream reworked the CSP, we kept our version for now. - `spec/requests/content_security_policy_spec.rb`: Upstream reworked the CSP, we kept our version for now.
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
name: Build container release images
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
build-image:
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
with:
|
|
file_to_build: Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
use_native_arm64_builder: false
|
|
push_to_images: |
|
|
ghcr.io/${{ github.repository_owner }}/mastodon
|
|
# 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.2.') }}
|
|
tags: |
|
|
type=pep440,pattern={{raw}}
|
|
type=pep440,pattern=v{{major}}.{{minor}}
|
|
secrets: inherit
|
|
|
|
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
|
|
use_native_arm64_builder: true
|
|
push_to_images: |
|
|
tootsuite/mastodon-streaming
|
|
ghcr.io/mastodon/mastodon-streaming
|
|
# 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
|