build-releases.yml 855 B

1234567891011121314151617181920212223242526272829
  1. name: Build container release images
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. permissions:
  7. contents: read
  8. packages: write
  9. jobs:
  10. build-image:
  11. uses: ./.github/workflows/build-container-image.yml
  12. with:
  13. platforms: linux/amd64,linux/arm64
  14. use_native_arm64_builder: true
  15. push_to_images: |
  16. tootsuite/mastodon
  17. ghcr.io/mastodon/mastodon
  18. # Do not use cache when building releases, so apt update is always ran and the release always contain the latest packages
  19. cache: false
  20. # Only tag with latest when ran against the latest stable branch
  21. # This needs to be updated after each minor version release
  22. flavor: |
  23. latest=${{ startsWith(github.ref, 'refs/tags/v4.2.') }}
  24. tags: |
  25. type=pep440,pattern={{raw}}
  26. type=pep440,pattern=v{{major}}.{{minor}}
  27. secrets: inherit