From c885ccea3c76b24935606c25e38b9074f0e33c3d Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Tue, 31 May 2022 08:50:22 +0530 Subject: [PATCH] Add docker build jobs for init and sync images --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d263eb..139c8ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,3 +61,43 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Extract metadata (tags, labels) for Docker (rcloud-base-init) + id: meta-init + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-init + tags: | + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha + + - name: Build and push Docker image (rcloud-base-init) + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + file: ./Dockerfile.initialize + push: true + tags: ${{ steps.meta-init.outputs.tags }} + labels: ${{ steps.meta-init.outputs.labels }} + + - name: Extract metadata (tags, labels) for Docker (rcloud-base-sync) + id: meta-sync + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/kratos-synchronizer + tags: | + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha + + - name: Build and push Docker image (rcloud-base-sync) + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + file: ./Dockerfile.synchronizer + push: true + tags: ${{ steps.meta-sync.outputs.tags }} + labels: ${{ steps.meta-sync.outputs.labels }}