Skip to content

Commit

Permalink
ci: test strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Feb 1, 2024
1 parent 79a83cf commit 5593ee2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ name: build & deploy
on:
push:
branches:
- "develop"
- "*"
tags:
- "*"

jobs:
build:
runs-on: self-hosted
runs-on: [self-hosted, ${{ matrix. arch}}]
strategy:
matrix:
arch:
- amd64
- arm64
permissions:
contents: read
packages: write
Expand All @@ -18,11 +23,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
push: true
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 5593ee2

Please sign in to comment.