-
Notifications
You must be signed in to change notification settings - Fork 46
51 lines (39 loc) · 967 Bytes
/
automated-build.yaml
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
name: Automated Build
on:
push:
branches:
- main
env:
DOCKER_BUILDKIT: 1
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
contents: read
packages: write
strategy:
matrix:
component: [ hasher, rng, webui, worker ]
steps:
-
uses: actions/checkout@v3
-
name: Log into GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
-
uses: docker/setup-qemu-action@v3
-
uses: docker/setup-buildx-action@v3
-
name: hasher
uses: docker/build-push-action@v5
with:
context: ${{ matrix.component }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ghcr.io/jpetazzo/dockercoins/${{ matrix.component }}:v0.1