release-rc.yml 2.1 KB

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