From 778c87cfd4f20788fb3a555c7068cc67381be3f3 Mon Sep 17 00:00:00 2001 From: Henry Vu <26101787+hungran@users.noreply.github.com> Date: Thu, 14 Dec 2023 17:49:40 +0700 Subject: [PATCH] cover gcr.io/pipecd and ghcr.io/pipe-cd (#4719) * cover gcr.io/pipecd and ghcr.io/pipe-cd Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> * iamge okd should have prefix -okd eg: Dockefile-okd Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> --------- Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> --- .github/workflows/publish_image_chart.yaml | 25 +++++++++------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish_image_chart.yaml b/.github/workflows/publish_image_chart.yaml index 7d1691a5ad..2153197a85 100644 --- a/.github/workflows/publish_image_chart.yaml +++ b/.github/workflows/publish_image_chart.yaml @@ -23,8 +23,8 @@ jobs: strategy: matrix: container_registry: - - ghcr.io - - gcr.io + - ghcr.io/pipe-cd + - gcr.io/pipecd image: - helloworld - launcher @@ -35,28 +35,23 @@ jobs: - pipectl include: - image: helloworld - dockerfile: cmd/helloworld/Dockerfile - image: launcher - dockerfile: cmd/launcher/Dockerfile - image: launcher-okd - dockerfile: cmd/launcher/Dockerfile-okd + okd: -okd - image: pipecd - dockerfile: cmd/pipecd/Dockerfile - image: piped - dockerfile: cmd/piped/Dockerfile - image: piped-okd - dockerfile: cmd/piped/Dockerfile-okd + okd: -okd - image: pipectl - dockerfile: cmd/pipectl/Dockerfile exclude: - image: launcher-okd - container_registry: gcr.io + container_registry: gcr.io/pipecd - image: piped - container_registry: gcr.io + container_registry: gcr.io/pipecd - image: piped-okd - container_registry: gcr.io + container_registry: gcr.io/pipecd - image: pipectl - container_registry: gcr.io + container_registry: gcr.io/pipecd steps: - uses: actions/checkout@v3 @@ -119,9 +114,9 @@ jobs: with: push: true context: . - file: ${{ matrix.dockerfile }} + file: cmd/${{ matrix.image }}/Dockerfile${{ matrix.okd }} platforms: linux/amd64,linux/arm64 - tags: ${{ matrix.container_registry }}/pipe-cd/${{ matrix.image }}:${{ env.PIPECD_VERSION }} + tags: ${{ matrix.container_registry }}/${{ matrix.image }}:${{ env.PIPECD_VERSION }} # Building and pushing Helm charts. - name: Install helm