build-releases.yml 675 B

123456789101112131415161718192021222324252627
  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. flavor: |
  21. latest=false
  22. tags: |
  23. type=pep440,pattern={{raw}}
  24. type=pep440,pattern=v{{major}}.{{minor}}
  25. secrets: inherit