-
Notifications
You must be signed in to change notification settings - Fork 28
46 lines (44 loc) · 1.05 KB
/
build.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: Cross-Platform Build on New Tag
on:
pull_request:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: darwin
arch: amd64
- os: darwin
arch: arm64
- os: windows
arch: amd64
- os: windows
arch: 386
- os: freebsd
arch: amd64
- os: freebsd
arch: arm
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./reproduciblebuilds/Dockerfile
platforms: ${{ matrix.os }}/${{ matrix.arch }}
push: false
tags: user/app:latest
build-args: |
BUILDOS=${{ matrix.os }}
BUILDARCH=${{ matrix.arch }}
BUILDNAME=myapp-${{ matrix.os }}-${{ matrix.arch }}