|
|
@ -13,8 +13,10 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- id: version_vars |
|
|
|
- id: version_vars |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
TZ: Etc/UTC |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
echo mastodon_version_suffix=+nightly-$(date +'%Y%m%d') >> $GITHUB_OUTPUT |
|
|
|
echo mastodon_version_suffix=nightly-$(date +'%Y-%m-%d')>> $GITHUB_OUTPUT |
|
|
|
outputs: |
|
|
|
outputs: |
|
|
|
suffix: ${{ steps.version_vars.outputs.mastodon_version_suffix }} |
|
|
|
suffix: ${{ steps.version_vars.outputs.mastodon_version_suffix }} |
|
|
|
|
|
|
|
|
|
|
@ -27,7 +29,8 @@ jobs: |
|
|
|
push_to_images: | |
|
|
|
push_to_images: | |
|
|
|
tootsuite/mastodon |
|
|
|
tootsuite/mastodon |
|
|
|
ghcr.io/mastodon/mastodon |
|
|
|
ghcr.io/mastodon/mastodon |
|
|
|
version_suffix: ${{ needs.compute-suffix.outputs.suffix }} |
|
|
|
# The `+` is important here, result will be v4.1.2+nightly-2022-03-05 |
|
|
|
|
|
|
|
version_suffix: +${{ needs.compute-suffix.outputs.suffix }} |
|
|
|
labels: | |
|
|
|
labels: | |
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes |
|
|
|
org.opencontainers.image.description=Nightly build image used for testing purposes |
|
|
|
flavor: | |
|
|
|
flavor: | |
|
|
@ -35,5 +38,5 @@ jobs: |
|
|
|
tags: | |
|
|
|
tags: | |
|
|
|
type=raw,value=edge |
|
|
|
type=raw,value=edge |
|
|
|
type=raw,value=nightly |
|
|
|
type=raw,value=nightly |
|
|
|
type=schedule,pattern=nightly-{{date 'YYYY-MM-DD' tz='Etc/UTC'}} |
|
|
|
type=schedule,pattern=${{ needs.compute-suffix.outputs.suffix }} |
|
|
|
secrets: inherit |
|
|
|
secrets: inherit |
|
|
|