mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-17 12:24:31 +00:00
3c7dbf3a16
Conflicts: - `.github/workflows/build-nightly.yml`: Upstream changed the environment variables used for defining the version number. This change occurs close to lines that were modified in glitch-soc to account for the different repositories to push to. Ported upstream changes. - `.github/workflows/build-push-pr.yml`: Upstream changed the environment variables used for defining the version number. This change occurs close to lines that were modified in glitch-soc to account for the different repositories to push to. Ported upstream changes. - `lib/mastodon/version.rb`: Upstream changed how the version string is built from environment variables. Adapted the logic to account for the `+glitch` in glitch-soc.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Build nightly container image
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 2 * * *' # run at 2 AM UTC
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
compute-suffix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: version_vars
|
|
env:
|
|
TZ: Etc/UTC
|
|
run: |
|
|
echo mastodon_version_prerelease=nightly.$(date +'%Y-%m-%d')>> $GITHUB_OUTPUT
|
|
outputs:
|
|
prerelease: ${{ steps.version_vars.outputs.mastodon_version_prerelease }}
|
|
|
|
build-image:
|
|
needs: compute-suffix
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
use_native_arm64_builder: false
|
|
push_to_images: |
|
|
ghcr.io/${{ github.repository_owner }}/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
|
|
type=schedule,pattern=${{ needs.compute-suffix.outputs.prerelease }}
|
|
secrets: inherit
|