-
Notifications
You must be signed in to change notification settings - Fork 4
115 lines (111 loc) · 6.31 KB
/
build-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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Build Docker images
on:
push:
branches:
- master
schedule:
- cron: 0 4 * * SUN
workflow_dispatch:
jobs:
tier1:
name: Build Tier 1 images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
images:
- { context: "alpine", tags: "1maa/alpine:3.20,1maa/alpine:latest", cache-tag: "1maa/alpine:3.20" }
- { context: "beanstalkd", tags: "1maa/beanstalkd:latest" }
- { context: "bitcoin", tags: "1maa/bitcoin:v22", dockerfile: "bitcoin/alpine/Dockerfile", build-arg: "BITCOIN_VERSION=22.1", second-arg: "ALPINE_VERSION=3.18" }
- { context: "bitcoin", tags: "1maa/bitcoin:v23", dockerfile: "bitcoin/alpine/Dockerfile", build-arg: "BITCOIN_VERSION=23.2" }
- { context: "bitcoin", tags: "1maa/bitcoin:v24", dockerfile: "bitcoin/alpine/Dockerfile", build-arg: "BITCOIN_VERSION=24.2" }
- { context: "bitcoin", tags: "1maa/bitcoin:v25", dockerfile: "bitcoin/alpine/Dockerfile", build-arg: "BITCOIN_VERSION=25.2" }
- { context: "bitcoin", tags: "1maa/bitcoin:v26,1maa/bitcoin:latest", dockerfile: "bitcoin/alpine/Dockerfile", cache-tag: "1maa/bitcoin:v26" }
- { context: "core-lightning", tags: "1maa/core-lightning:latest" }
- { context: "electrs", tags: "1maa/electrs:latest" }
- { context: "erlang", tags: "1maa/erlang:24-alpine", build-arg: "ERLANG_VERSION=24.3.4.17" }
- { context: "erlang", tags: "1maa/erlang:25-alpine", build-arg: "ERLANG_VERSION=25.3.2.12" }
- { context: "erlang", tags: "1maa/erlang:26-alpine", build-arg: "ERLANG_VERSION=26.2.5.1" }
- { context: "erlang", tags: "1maa/erlang:27-alpine,1maa/erlang:latest", cache-tag: "1maa/erlang:27-alpine" }
- { context: "lua/5.3", tags: "1maa/lua:5.3" }
- { context: "lua/5.4", tags: "1maa/lua:5.4" }
- { context: "protoc", tags: "1maa/protoc:latest" }
- { context: "sakila", tags: "1maa/sakila:latest" }
- { context: "selfsig", tags: "1maa/selfsig:latest" }
- { context: "sleepy", tags: "1maa/sleepy:latest" }
- { context: "sqlite", tags: "1maa/sqlite:latest" }
- { context: "xhgui", tags: "1maa/xhgui:latest" }
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/docker-generic
with:
build-arg: ${{ matrix.images.build-arg || '' }}
second-arg: ${{ matrix.images.second-arg || '' }}
cache-tag: ${{ matrix.images.cache-tag || matrix.images.tags }}
context: ${{ matrix.images.context }}
docker-hub-pass: ${{ secrets.DOCKER_HUB_PASS }}
docker-hub-user: 1maa
dockerfile: ${{ matrix.images.dockerfile || format('{0}/Dockerfile', matrix.images.context) }}
tags: ${{ matrix.images.tags }}
tier2:
name: Build Tier 2 images
runs-on: ubuntu-latest
needs:
- tier1
strategy:
fail-fast: false
matrix:
images:
- { context: "bitcoin", tags: "1maa/signet-miner:latest", dockerfile: "bitcoin/signet-miner/Dockerfile" }
- { context: "bitcoin/regtest", tags: "1maa/bitcoin:v22-regtest", build-arg: "BITCOIN_TAG=v22" }
- { context: "bitcoin/regtest", tags: "1maa/bitcoin:v23-regtest", build-arg: "BITCOIN_TAG=v23" }
- { context: "bitcoin/regtest", tags: "1maa/bitcoin:v24-regtest", build-arg: "BITCOIN_TAG=v24" }
- { context: "bitcoin/regtest", tags: "1maa/bitcoin:v25-regtest", build-arg: "BITCOIN_TAG=v25" }
- { context: "bitcoin/regtest", tags: "1maa/bitcoin:v26-regtest,1maa/bitcoin:regtest", cache-tag: "1maa/bitcoin:v26-regtest" }
- { context: "bitcoin/testnet", tags: "1maa/bitcoin:v22-testnet", build-arg: "BITCOIN_TAG=v22" }
- { context: "bitcoin/testnet", tags: "1maa/bitcoin:v23-testnet", build-arg: "BITCOIN_TAG=v23" }
- { context: "bitcoin/testnet", tags: "1maa/bitcoin:v24-testnet", build-arg: "BITCOIN_TAG=v24" }
- { context: "bitcoin/testnet", tags: "1maa/bitcoin:v25-testnet", build-arg: "BITCOIN_TAG=v25" }
- { context: "bitcoin/testnet", tags: "1maa/bitcoin:v26-testnet,1maa/bitcoin:testnet", cache-tag: "1maa/bitcoin:v26-testnet" }
- { context: "haproxy", tags: "1maa/haproxy:3.0" }
- { context: "postgres", tags: "1maa/postgres:12-alpine", build-arg: "POSTGRES_VERSION=12.19" }
- { context: "postgres", tags: "1maa/postgres:13-alpine", build-arg: "POSTGRES_VERSION=13.15" }
- { context: "postgres", tags: "1maa/postgres:14-alpine", build-arg: "POSTGRES_VERSION=14.12" }
- { context: "postgres", tags: "1maa/postgres:15-alpine", build-arg: "POSTGRES_VERSION=15.7" }
- { context: "postgres", tags: "1maa/postgres:16-alpine" }
- { context: "sftp", tags: "1maa/sftp:latest" }
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/docker-generic
with:
build-arg: ${{ matrix.images.build-arg || '' }}
cache-tag: ${{ matrix.images.cache-tag || matrix.images.tags }}
context: ${{ matrix.images.context }}
docker-hub-pass: ${{ secrets.DOCKER_HUB_PASS }}
docker-hub-user: 1maa
dockerfile: ${{ matrix.images.dockerfile || format('{0}/Dockerfile', matrix.images.context) }}
tags: ${{ matrix.images.tags }}
tier2-php:
name: Build PHP images (Tier 2)
runs-on: ubuntu-latest
needs:
- tier1
strategy:
fail-fast: false
matrix:
images:
- { tag: "1maa/php:7.3", dev-tag: "1maa/php-dev:7.3", dockerfile: "php/7.3/Dockerfile" }
- { tag: "1maa/php:7.4", dev-tag: "1maa/php-dev:7.4", dockerfile: "php/7.4/Dockerfile" }
- { tag: "1maa/php:8.0", dev-tag: "1maa/php-dev:8.0", dockerfile: "php/8.0/Dockerfile" }
- { tag: "1maa/php:8.1", dev-tag: "1maa/php-dev:8.1", dockerfile: "php/8.1/Dockerfile" }
- { tag: "1maa/php:8.2", dev-tag: "1maa/php-dev:8.2", dockerfile: "php/8.2/Dockerfile" }
- { tag: "1maa/php:8.3", dev-tag: "1maa/php-dev:8.3", dockerfile: "php/8.3/Dockerfile" }
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/docker-php
with:
tag: ${{ matrix.images.tag }}
dev-tag: ${{ matrix.images.dev-tag }}
docker-hub-pass: ${{ secrets.DOCKER_HUB_PASS }}
docker-hub-user: 1maa
dockerfile: ${{ matrix.images.dockerfile }}