Skip to content

Commit

Permalink
separate image builders by architecture (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Oct 31, 2024
1 parent 922768e commit 28dbe44
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions .github/workflows/publish_dockerhub_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,58 @@ permissions:
id-token: write

jobs:
build-push:
build-x86:
runs-on: ubuntu-latest

steps:
- id: checkout
uses: actions/checkout@v4

- id: push-beyla-to-dockerhub
uses: mariomac/shared-workflows/actions/build-push-to-dockerhub@skip-qemu
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
skip-qemu: true
repository: grafana/beyla
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"main"
push: true

- id: push-beyla-k8s-cache-to-dockerhub
uses: mariomac/shared-workflows/actions/build-push-to-dockerhub@skip-qemu
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
skip-qemu: true
repository: grafana/beyla-k8s-cache
file: k8scache.Dockerfile
context: .
tags: |-
"main"
push: true

build-arm64:
runs-on: github-hosted-ubuntu-arm64

steps:
- id: checkout
uses: actions/checkout@v4

- id: push-beyla-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
skip-qemu: true
repository: grafana/beyla
context: .
tags: |-
"main"
push: true

- id: push-beyla-k8s-cache-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
skip-qemu: true
repository: grafana/beyla-k8s-cache
file: k8scache.Dockerfile
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"main"
push: true

0 comments on commit 28dbe44

Please sign in to comment.