2024-02-01 10:33:12 +01:00
|
|
|
name: Build security nightly container image
|
2024-02-01 10:52:01 +01:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-02-01 10:33:12 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
compute-suffix:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'mastodon/mastodon'
|
|
|
|
steps:
|
|
|
|
- id: version_vars
|
|
|
|
env:
|
|
|
|
TZ: Etc/UTC
|
|
|
|
run: |
|
|
|
|
echo mastodon_version_prerelease=nightly.$(date --date='next day' +'%Y-%m-%d')-security>> $GITHUB_OUTPUT
|
|
|
|
outputs:
|
|
|
|
prerelease: ${{ steps.version_vars.outputs.mastodon_version_prerelease }}
|
|
|
|
|
|
|
|
build-image:
|
|
|
|
needs: compute-suffix
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
file_to_build: Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
use_native_arm64_builder: true
|
|
|
|
cache: false
|
|
|
|
push_to_images: |
|
|
|
|
tootsuite/mastodon
|
|
|
|
ghcr.io/mastodon/mastodon
|
|
|
|
version_prerelease: ${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes
|
|
|
|
flavor: |
|
|
|
|
latest=auto
|
|
|
|
tags: |
|
|
|
|
type=raw,value=edge
|
|
|
|
type=raw,value=nightly
|
2024-02-06 21:48:11 +01:00
|
|
|
type=raw,value=${{ needs.compute-suffix.outputs.prerelease }}
|
2024-02-01 10:33:12 +01:00
|
|
|
secrets: inherit
|
|
|
|
|
|
|
|
build-image-streaming:
|
|
|
|
needs: compute-suffix
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
file_to_build: streaming/Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
use_native_arm64_builder: true
|
|
|
|
cache: false
|
|
|
|
push_to_images: |
|
|
|
|
tootsuite/mastodon-streaming
|
|
|
|
ghcr.io/mastodon/mastodon-streaming
|
|
|
|
version_prerelease: ${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes
|
|
|
|
flavor: |
|
|
|
|
latest=auto
|
|
|
|
tags: |
|
|
|
|
type=raw,value=edge
|
|
|
|
type=raw,value=nightly
|
2024-02-06 21:48:11 +01:00
|
|
|
type=raw,value=${{ needs.compute-suffix.outputs.prerelease }}
|
2024-02-01 10:33:12 +01:00
|
|
|
secrets: inherit
|