2024-02-01 09:33:12 +00:00
|
|
|
name: Build security nightly container image
|
2024-02-01 09:52:01 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-02-01 09:33:12 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
compute-suffix:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- id: version_vars
|
|
|
|
env:
|
|
|
|
TZ: Etc/UTC
|
|
|
|
run: |
|
2024-02-01 17:39:28 +00:00
|
|
|
echo mastodon_version_prerelease=nightly.2024-02-02-security>> $GITHUB_OUTPUT
|
2024-02-01 09:33:12 +00:00
|
|
|
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
|
2024-02-01 15:09:51 +00:00
|
|
|
use_native_arm64_builder: false
|
2024-02-01 09:33:12 +00:00
|
|
|
cache: false
|
|
|
|
push_to_images: |
|
2024-02-01 09:40:04 +00:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon
|
2024-02-01 09:33:12 +00:00
|
|
|
version_prerelease: ${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes
|
|
|
|
flavor: |
|
2024-02-01 10:31:29 +00:00
|
|
|
latest=true
|
2024-02-01 09:33:12 +00:00
|
|
|
tags: |
|
|
|
|
type=raw,value=edge
|
|
|
|
type=raw,value=nightly
|
|
|
|
type=schedule,pattern=${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
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
|
2024-02-01 09:40:04 +00:00
|
|
|
use_native_arm64_builder: false
|
2024-02-01 09:33:12 +00:00
|
|
|
cache: false
|
|
|
|
push_to_images: |
|
2024-02-01 16:20:08 +00:00
|
|
|
ghcr.io/${{ github.repository_owner }}/mastodon-streaming
|
2024-02-01 09:33:12 +00:00
|
|
|
version_prerelease: ${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes
|
|
|
|
flavor: |
|
2024-02-01 10:31:29 +00:00
|
|
|
latest=true
|
2024-02-01 09:33:12 +00:00
|
|
|
tags: |
|
|
|
|
type=raw,value=edge
|
|
|
|
type=raw,value=nightly
|
|
|
|
type=schedule,pattern=${{ needs.compute-suffix.outputs.prerelease }}
|
|
|
|
secrets: inherit
|