release-rc.yml 2.6 KB

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