Skip to content

Commit

Permalink
add qemu and buildx for multi arch (arm64) (#4552)
Browse files Browse the repository at this point in the history
* add qemu and buildx for multi arch (arm64)

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add launcher multiple platform

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add okd, helloworld and pipectl arm64

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

---------

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
  • Loading branch information
hungran committed Aug 25, 2023
1 parent 303e9e1 commit 9f75446
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish_image_chart.yaml
Expand Up @@ -54,6 +54,12 @@ jobs:
- name: Build web static
run: make build/web

# Setup QEMU and Buildx.
- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 #v2.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 #2.0.0

# Login to push container images.
- name: Log in to GHCR
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b #v2.0.0
Expand All @@ -76,13 +82,15 @@ jobs:
push: true
context: .
file: cmd/pipecd/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ env.GHCR }}/pipe-cd/pipecd:${{ env.PIPECD_VERSION }}
- name: Build and push piped image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
push: true
context: .
file: cmd/piped/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
${{ env.GHCR }}/pipe-cd/piped:${{ env.PIPECD_VERSION }}
${{ env.GCR }}/pipecd/piped:${{ env.PIPECD_VERSION }}
Expand All @@ -92,13 +100,15 @@ jobs:
push: true
context: .
file: cmd/piped/Dockerfile-okd
platforms: linux/amd64,linux/arm64
tags: ${{ env.GHCR }}/pipe-cd/piped-okd:${{ env.PIPECD_VERSION }}
- name: Build and push launcher image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
push: true
context: .
file: cmd/launcher/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
${{ env.GHCR }}/pipe-cd/launcher:${{ env.PIPECD_VERSION }}
${{ env.GCR }}/pipecd/launcher:${{ env.PIPECD_VERSION }}
Expand All @@ -108,20 +118,23 @@ jobs:
push: true
context: .
file: cmd/launcher/Dockerfile-okd
platforms: linux/amd64,linux/arm64
tags: ${{ env.GHCR }}/pipe-cd/launcher-okd:${{ env.PIPECD_VERSION }}
- name: Build and push pipectl image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
push: true
context: .
file: cmd/pipectl/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ env.GHCR }}/pipe-cd/pipectl:${{ env.PIPECD_VERSION }}
- name: Build and push helloworld image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
push: true
context: .
file: cmd/helloworld/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
${{ env.GHCR }}/pipe-cd/helloworld:${{ env.PIPECD_VERSION }}
${{ env.GCR }}/pipecd/helloworld:${{ env.PIPECD_VERSION }}
Expand Down

0 comments on commit 9f75446

Please sign in to comment.