release-rc.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. TAGS_GHCR: ${{ steps.meta-ghcr.outputs.tags }}
  15. steps:
  16. - uses: actions/checkout@v3
  17. - name: Retrieve information from package.json
  18. uses: myrotvorets/info-from-package-json-action@1.2.0
  19. id: package-json
  20. - name: Docker meta for docker.io
  21. id: meta
  22. uses: docker/metadata-action@v4
  23. with:
  24. images: docker.io/weseek/growi-codebuild-test
  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 ghcr.io
  30. id: meta-ghcr
  31. uses: docker/metadata-action@v4
  32. with:
  33. images: ghcr.io/weseek/growi-codebuild-test
  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. - name: Docker meta for ghcr.io
  39. id: meta-ghcr
  40. uses: docker/metadata-action@v4
  41. with:
  42. images: ghcr.io/weseek/growi-codebuild-test
  43. sep-tags: ','
  44. tags: |
  45. type=raw,value=${{ steps.package-json.outputs.packageVersion }}
  46. type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
  47. build-image-rc:
  48. uses: weseek/growi/.github/workflows/reusable-app-build-image.yml@rc/6.0.3-with-codebuild
  49. with:
  50. image-name: weseek/growi-codebuild-test
  51. tag-temporary: latest-rc
  52. secrets:
  53. AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
  54. publish-image-rc:
  55. needs: [determine-tags, build-image-rc]
  56. uses: weseek/growi/.github/workflows/reusable-app-create-manifests.yml@rc/6.0.3-with-codebuild
  57. with:
  58. tags: ${{ needs.determine-tags.outputs.TAGS }}
  59. registry: docker.io
  60. image-name: weseek/growi-codebuild-test
  61. tag-temporary: latest-rc
  62. secrets:
  63. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
  64. publish-image-rc-ghcr:
  65. needs: [determine-tags, build-image-rc]
  66. uses: weseek/growi/.github/workflows/reusable-app-create-manifests.yml@rc/6.0.3-with-codebuild
  67. with:
  68. tags: ${{ needs.determine-tags.outputs.TAGS_GHCR }}
  69. registry: ghcr.io
  70. image-name: weseek/growi-codebuild-test
  71. tag-temporary: latest-rc
  72. secrets:
  73. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}