release-rc.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_WESEEK: ${{ steps.meta-weseek.outputs.tags }}
  14. TAGS_GROWILABS: ${{ steps.meta-growilabs.outputs.tags }}
  15. steps:
  16. - uses: actions/checkout@v4
  17. - name: Retrieve information from package.json
  18. uses: myrotvorets/info-from-package-json-action@v2.0.2
  19. id: package-json
  20. - name: Docker meta for weseek/growi
  21. uses: docker/metadata-action@v5
  22. id: meta-weseek
  23. with:
  24. images: docker.io/weseek/growi
  25. sep-tags: ','
  26. tags: |
  27. type=raw,value=${{ steps.package-json.outputs.packageVersion }}
  28. type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
  29. - name: Docker meta for growilabs/growi
  30. uses: docker/metadata-action@v5
  31. id: meta-growilabs
  32. with:
  33. images: docker.io/growilabs/growi
  34. sep-tags: ','
  35. tags: |
  36. type=raw,value=${{ steps.package-json.outputs.packageVersion }}
  37. type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
  38. build-image-rc:
  39. uses: growilabs/growi/.github/workflows/reusable-app-build-image.yml@master
  40. with:
  41. image-name: growilabs/growi
  42. tag-temporary: latest-rc
  43. secrets:
  44. AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
  45. publish-rc-image-for-growilabs:
  46. needs: [determine-tags, build-image-rc]
  47. uses: growilabs/growi/.github/workflows/reusable-app-create-manifests.yml@master
  48. with:
  49. tags: ${{ needs.determine-tags.outputs.TAGS_GROWILABS }}
  50. registry: docker.io
  51. image-name: 'growilabs/growi'
  52. docker-registry-username: 'growimoogle'
  53. tag-temporary: latest-rc
  54. secrets:
  55. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD_GROWIMOOGLE }}
  56. publish-rc-image-for-weseek:
  57. needs: [determine-tags, build-image-rc]
  58. uses: growilabs/growi/.github/workflows/reusable-app-create-manifests.yml@master
  59. with:
  60. tags: ${{ needs.determine-tags.outputs.TAGS_WESEEK }}
  61. registry: docker.io
  62. image-name: 'growilabs/growi'
  63. docker-registry-username: 'wsmoogle'
  64. tag-temporary: latest-rc
  65. secrets:
  66. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}