Skip to content

Commit f8cca83

Browse files
authored
ci: use arm runner instead of qemu (#754)
* ci: switch from qemu-arm to arm runner * ci: build dockerimage on each pull request
1 parent d12fadf commit f8cca83

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,40 @@ name: Docker Image
22

33
on:
44
push:
5-
branches: [ development ]
5+
branches: [ master, development ]
6+
pull_request:
7+
branches: [ master, development ]
68

79
jobs:
810
push_to_registries:
911
name: Push Docker image to multiple registries
10-
runs-on: ubuntu-24.04
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-24.04, ubuntu-24.04-arm]
1116
permissions:
1217
packages: write
1318
contents: read
1419
steps:
1520
- name: Check out the repo
1621
uses: actions/checkout@v4
17-
- name: Set up QEMU
18-
uses: docker/setup-qemu-action@v3
1922
- name: Set up Docker Buildx
2023
uses: docker/setup-buildx-action@v3
21-
# If we want to publish an image of PhASAR to the official docker hub we
22-
# can just use the following code and set the corresponding secrets.
23-
# - name: Log in to Docker Hub
24-
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
25-
# with:
26-
# username: ${{ secrets.DOCKER_USERNAME }}
27-
# password: ${{ secrets.DOCKER_TOKEN }}
28-
2924
- name: Log in to the Container registry
3025
uses: docker/login-action@v3
3126
with:
3227
registry: ghcr.io
3328
username: ${{ github.actor }}
3429
password: ${{ secrets.GITHUB_TOKEN }}
35-
3630
- name: Extract metadata (tags, labels) for Docker
3731
id: meta
3832
uses: docker/metadata-action@v4
3933
with:
4034
images: ghcr.io/${{ github.repository }}
41-
# here we could add a second image for the official docker registry
42-
# sse/phasar
4335
- name: Build and push Docker images
4436
uses: docker/build-push-action@v6
4537
with:
4638
context: .
47-
platforms: linux/amd64,linux/arm64
48-
push: true
39+
push: ${{ github.ref == 'refs/heads/development' }}
4940
tags: ${{ steps.meta.outputs.tags }}
5041
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)