-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (70 loc) · 2.19 KB
/
build-builder-docker-image.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build Builder Docker Image
on:
workflow_dispatch:
push:
schedule:
- cron: '30 7 * * *'
jobs:
docker:
strategy:
fail-fast: false
matrix:
# TODO: parse from config
include:
- name: archlinux
from: ghcr.io/clansty/archlinux:base-devel
package-type: pacman
platform: linux/amd64,linux/arm64,linux/riscv64
- name: manjaro
from: manjarolinux/base:latest
package-type: pacman
platform: linux/amd64,linux/arm64
- name: ubuntu-22.04
from: ubuntu:22.04
package-type: deb
platform: linux/amd64,linux/arm64,linux/riscv64
- name: ubuntu-22.10
from: ubuntu:22.10
package-type: deb
platform: linux/amd64,linux/arm64,linux/riscv64
- name: ubuntu-20.04
from: ubuntu:20.04
package-type: deb
platform: linux/amd64,linux/arm64,linux/riscv64
- name: debian-11
from: debian:11
package-type: deb
platform: linux/amd64,linux/arm64
- name: debian-10
from: debian:10
package-type: deb
platform: linux/amd64,linux/arm64
- name: deepin-beige
from: ghcr.io/clansty/deepin-riscv:latest
package-type: deb
platform: linux/riscv64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: builder
platforms: ${{ matrix.platform }}
push: true
tags: |
ghcr.io/clansty/package-builder:${{ matrix.name }}
build-args: |
FROM=${{ matrix.from }}
PACKAGE_TYPE=${{ matrix.package-type }}