release-rc.yml 2.3 KB

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