build-releases.yml 708 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. # Only tag with latest when ran against the latest stable branch
  19. # This needs to be updated after each minor version release
  20. flavor: |
  21. latest=${{ startsWith(github.ref, 'refs/tags/v4.1.') }}
  22. tags: |
  23. type=pep440,pattern={{raw}}
  24. type=pep440,pattern=v{{major}}.{{minor}}
  25. secrets: inherit