forked from droidian-releng/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.34 KB
/
docker-images.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
# droidian docker images build definition for GitHub Actions
# Contact: Eugenio "g7" Paolantonio <[email protected]>
name: g7 docker-images
on:
schedule:
- cron: "59 23 * * *"
push:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
arch: [amd64, armhf, arm64]
template: [build-essential]
dist: [bullseye]
namespace: [g7-debs]
exclude:
- template: aptly-intake
arch: arm64
- template: aptly-intake
arch: armhf
name: ${{ matrix.template }}:${{ matrix.dist }} on ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: QEMU set-up
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Build
run: ./src/build_docker_image.sh "${{ matrix.arch }}/${{ matrix.namespace }}/${{ matrix.template }}:${{ matrix.dist }}"
- name: Deploy
if: "${{ github.ref == 'refs/heads/master' }}"
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./src/push_docker_image.sh "${{ matrix.arch }}/${{ matrix.namespace }}/${{ matrix.template }}:${{ matrix.dist }}"