Skip to content

Commit

Permalink
cover gcr.io/pipecd and ghcr.io/pipe-cd (pipe-cd#4719)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
hungran authored Dec 14, 2023
1 parent 2035225 commit 778c87c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/publish_image_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
strategy:
matrix:
container_registry:
- ghcr.io
- gcr.io
- ghcr.io/pipe-cd
- gcr.io/pipecd
image:
- helloworld
- launcher
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 778c87c

Please sign in to comment.