|
@@ -33,32 +33,48 @@ jobs:
|
|
|
type=raw,value=${{ steps.package-json.outputs.packageVersion }}
|
|
type=raw,value=${{ steps.package-json.outputs.packageVersion }}
|
|
|
type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
|
|
type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
|
|
|
|
|
|
|
|
- - name: Login to docker.io registry
|
|
|
|
|
- run: |
|
|
|
|
|
- echo ${{ secrets. DOCKER_REGISTRY_PASSWORD }} | docker login --username wsmoogle --password-stdin
|
|
|
|
|
|
|
+ # - name: Login to docker.io registry
|
|
|
|
|
+ # run: |
|
|
|
|
|
+ # echo ${{ secrets. DOCKER_REGISTRY_PASSWORD }} | docker login --username wsmoogle --password-stdin
|
|
|
|
|
|
|
|
- - name: Login to GitHub Container Registry
|
|
|
|
|
- uses: docker/login-action@v2
|
|
|
|
|
- with:
|
|
|
|
|
- registry: ghcr.io
|
|
|
|
|
- username: wsmoogle
|
|
|
|
|
- password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
|
|
|
|
|
|
|
+ # - name: Login to GitHub Container Registry
|
|
|
|
|
+ # uses: docker/login-action@v2
|
|
|
|
|
+ # with:
|
|
|
|
|
+ # registry: ghcr.io
|
|
|
|
|
+ # username: wsmoogle
|
|
|
|
|
+ # password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
|
|
|
|
|
+
|
|
|
|
|
+ # - name: Set up QEMU
|
|
|
|
|
+ # if: ${{ matrix.platform == 'linux/arm64' }}
|
|
|
|
|
+ # uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
|
- - name: Set up QEMU
|
|
|
|
|
- if: ${{ matrix.platform == 'linux/arm64' }}
|
|
|
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
+ # - name: Set up Docker Buildx
|
|
|
|
|
+ # uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- - name: Set up Docker Buildx
|
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
+ # - name: Build and push
|
|
|
|
|
+ # uses: docker/build-push-action@v2
|
|
|
|
|
+ # with:
|
|
|
|
|
+ # context: .
|
|
|
|
|
+ # file: ./packages/app/docker/Dockerfile
|
|
|
|
|
+ # platforms: ${{ matrix.platform }}
|
|
|
|
|
+ # push: true
|
|
|
|
|
+ # builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
|
+ # cache-from: type=gha
|
|
|
|
|
+ # cache-to: type=gha,mode=max
|
|
|
|
|
+ # tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
|
+
|
|
|
|
|
+ - name: Configure AWS Credentials
|
|
|
|
|
+ uses: aws-actions/configure-aws-credentials@v1
|
|
|
|
|
+ with:
|
|
|
|
|
+ aws-region: asia-northeast-1
|
|
|
|
|
+ role-to-assume: GitHubOIDC-for-growi
|
|
|
|
|
+ role-session-name: SessionForReleaseGROWI-RC
|
|
|
|
|
|
|
|
- - name: Build and push
|
|
|
|
|
- uses: docker/build-push-action@v2
|
|
|
|
|
|
|
+ - name: Run CodeBuild
|
|
|
|
|
+ uses: aws-actions/aws-codebuild-run-build@v1
|
|
|
with:
|
|
with:
|
|
|
- context: .
|
|
|
|
|
- file: ./packages/app/docker/Dockerfile
|
|
|
|
|
- platforms: ${{ matrix.platform }}
|
|
|
|
|
- push: true
|
|
|
|
|
- builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
|
- cache-from: type=gha
|
|
|
|
|
- cache-to: type=gha,mode=max
|
|
|
|
|
- tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
|
|
|
+ project-name: growi-official-image-builder
|
|
|
|
|
+ env-vars-for-codebuild: |
|
|
|
|
|
+ TAGS
|
|
|
|
|
+ env:
|
|
|
|
|
+ TAGS: ${{ steps.meta.outputs.tags }}
|