release-rc.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. build-rc:
  11. uses: weseek/growi/.github/workflows/reusable-app-build-image.yml@rc/6.0.3-with-codebuild
  12. with:
  13. tag-version: latest-rc
  14. secrets:
  15. AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
  16. DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
  17. DOCKER_REGISTRY_ON_GITHUB_PASSWORD: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
  18. # runs-on: ubuntu-latest
  19. # These permissions are needed to interact with GitHub's OIDC Token endpoint.
  20. # permissions:
  21. # id-token: write
  22. # contents: write
  23. # steps:
  24. # - uses: actions/checkout@v3
  25. # with:
  26. # lfs: true
  27. # - name: Retrieve information from package.json
  28. # uses: myrotvorets/info-from-package-json-action@1.2.0
  29. # id: package-json
  30. # - name: Docker meta
  31. # id: meta
  32. # uses: docker/metadata-action@v4
  33. # with:
  34. # images: weseek/growi
  35. # tags: |
  36. # type=raw,value=${{ steps.package-json.outputs.packageVersion }}
  37. # type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
  38. # - name: Login to docker.io registry
  39. # run: |
  40. # echo ${{ secrets. DOCKER_REGISTRY_PASSWORD }} | docker login --username wsmoogle --password-stdin
  41. # - name: Login to GitHub Container Registry
  42. # uses: docker/login-action@v2
  43. # with:
  44. # registry: ghcr.io
  45. # username: wsmoogle
  46. # password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
  47. # - name: Set up QEMU
  48. # if: ${{ matrix.platform == 'linux/arm64' }}
  49. # uses: docker/setup-qemu-action@v1
  50. # - name: Set up Docker Buildx
  51. # uses: docker/setup-buildx-action@v2
  52. # - name: Build and push
  53. # uses: docker/build-push-action@v2
  54. # with:
  55. # context: .
  56. # file: ./packages/app/docker/Dockerfile
  57. # platforms: ${{ matrix.platform }}
  58. # push: true
  59. # builder: ${{ steps.buildx.outputs.name }}
  60. # cache-from: type=gha
  61. # cache-to: type=gha,mode=max
  62. # tags: ${{ steps.meta.outputs.tags }}
  63. # - name: Configure AWS Credentials
  64. # uses: aws-actions/configure-aws-credentials@v1
  65. # with:
  66. # aws-region: ap-northeast-1
  67. # role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
  68. # role-session-name: SessionForReleaseGROWI-RC
  69. # - name: Run CodeBuild
  70. # uses: aws-actions/aws-codebuild-run-build@v1
  71. # with:
  72. # project-name: growi-official-image-builder
  73. # env-vars-for-codebuild: |
  74. # TAGS
  75. # env:
  76. # TAGS: ${{ steps.meta.outputs.tags }}