-
Notifications
You must be signed in to change notification settings - Fork 567
46 lines (45 loc) · 1.21 KB
/
pre-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and Test
on:
pull_request:
branches:
- master
- release/*
jobs:
build-and-test:
runs-on: [ubuntu-latest]
strategy:
matrix:
distribution:
- debian
- alpine
platform:
- linux/amd64
- linux/i386
- linux/arm/v5
- linux/arm/v6
- linux/arm/v7
- linux/mips64le
- linux/ppc64le
- linux/s390x
- linux/arm64
- linux/riscv64
exclude:
- distribution: alpine
platform: linux/mips64le
- distribution: alpine
platform: linux/arm/v5
- distribution: debian
platform: linux/riscv64
- distribution: debian
platform: linux/arm/v6
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: ./.github/actions/build-and-tag-locally
with:
distribution: ${{ matrix.distribution }}
platform: ${{ matrix.platform }}
registry_username: ${{ vars.REGISTRY_USERNAME }}
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
publish_image: ${{ vars.PUBLISH_IMAGE }}
registry_repository: ${{ vars.REGISTRY_REPOSITORY }}