-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (36 loc) · 999 Bytes
/
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
name: Build image
on:
push:
release:
types:
- published
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
arch:
- [aarch64-linux-gnn, aarch64, /opt/externs/libs]
- [arm-linux-gnueabihf, armv4, /opt/externs/libs]
- [x86_64-linux-gnu, x86_64, /usr/local]
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build base image
uses: docker/build-push-action@v2
with:
push: true
pull: true
platforms: linux/amd64
tags: ghcr.io/neugates/build:${{ matrix.arch[1] }}-${{ github.ref_name }}
file: .github/dockerfile/${{ matrix.arch[1] }}_Dockerfile
context: .