-
Notifications
You must be signed in to change notification settings - Fork 567
54 lines (52 loc) · 1.5 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
47
48
49
50
51
52
53
54
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/v7
- linux/mips64le
- linux/ppc64le
- linux/s390x
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 }}
# build-and-test-arm64:
# runs-on: ARM64
# strategy:
# matrix:
# distribution:
# - debian
# platform:
# - linux/arm64
# 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: ${{ vars.REGISTRY_URL }}