-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.4 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
52
53
# droidian docker images build definition for GitHub Actions
# Contact: Eugenio "g7" Paolantonio <[email protected]>
name: droidian docker-images
on:
workflow_dispatch:
schedule:
- cron: "59 23 * * *"
push:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
arch: [amd64, armhf, arm64]
template: [build-essential, rootfs-builder, aptly-intake]
dist: [current, next]
namespace: [droidian]
exclude:
- template: aptly-intake
arch: armhf
name: ${{ matrix.template }}:${{ matrix.dist }} on ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: APT update
run: sudo apt update
- 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 }}"