release-rc.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Release Docker Images for RC
  2. on:
  3. push:
  4. branches:
  5. - rc/**
  6. concurrency:
  7. group: ${{ github.workflow }}-${{ github.ref }}
  8. cancel-in-progress: true
  9. jobs:
  10. determine-tags:
  11. runs-on: ubuntu-latest
  12. outputs:
  13. TAGS: ${{ steps.meta.outputs.tags }}
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Retrieve information from package.json
  17. uses: myrotvorets/info-from-package-json-action@2.0.1
  18. id: package-json
  19. - name: Docker meta for docker.io
  20. uses: docker/metadata-action@v4
  21. id: meta
  22. with:
  23. images: docker.io/weseek/growi
  24. sep-tags: ','
  25. tags: |
  26. type=raw,value=${{ steps.package-json.outputs.packageVersion }}
  27. type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
  28. build-image-rc:
  29. uses: weseek/growi/.github/workflows/reusable-app-build-image.yml@master
  30. with:
  31. image-name: weseek/growi
  32. tag-temporary: latest-rc
  33. secrets:
  34. AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
  35. publish-image-rc:
  36. needs: [determine-tags, build-image-rc]
  37. uses: weseek/growi/.github/workflows/reusable-app-create-manifests.yml@master
  38. with:
  39. tags: ${{ needs.determine-tags.outputs.TAGS }}
  40. registry: docker.io
  41. image-name: weseek/growi
  42. tag-temporary: latest-rc
  43. secrets:
  44. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}