Skip to content

Commit

Permalink
build arm64 image with qemu, update workflow versions in push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
audacioustux authored Mar 30, 2024
1 parent 3414dee commit 40508df
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:
inputs:
image_tag:
description: 'Image tag name.'
description: "Image tag name."
required: true
release:
types:
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Build:checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: "Set image tag name"
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
Expand All @@ -28,38 +28,43 @@ jobs:
- name: "Check image tag name"
run: |
echo "IMAGETAG=${{env.IMAGETAG}}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: "Build:buildx"
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
with:
version: v0.9.1 # Buildx version
version: v0.12.1 # Buildx version
- name: "Build:login"
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build:dockerimage"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
push: true
file: Dockerfile.controller
build-args: |
GO_BUILDER_IMG=golang:1.19
platforms: linux/amd64,linux/arm64
tags: ghcr.io/grafana/k6-operator:latest,ghcr.io/grafana/k6-operator:controller-${{env.IMAGETAG}}
- name: "Build:dockerimage"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
push: true
file: Dockerfile.runner
platforms: linux/amd64,linux/arm64
tags: ghcr.io/grafana/k6-operator:latest-runner,ghcr.io/grafana/k6-operator:runner-${{env.IMAGETAG}}
- name: "Build:dockerimage"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
push: true
file: Dockerfile.starter
platforms: linux/amd64,linux/arm64
tags: ghcr.io/grafana/k6-operator:latest-starter,ghcr.io/grafana/k6-operator:starter-${{env.IMAGETAG}}

bundle:
Expand All @@ -70,7 +75,7 @@ jobs:
pull-requests: write
steps:
- name: "Checkout code"
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: "Set image tag name"
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
Expand Down

0 comments on commit 40508df

Please sign in to comment.