-
Notifications
You must be signed in to change notification settings - Fork 533
/
Taskfile.yml
81 lines (70 loc) · 4.73 KB
/
Taskfile.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
# https://taskfile.dev/installation
version: '3'
tasks:
default:
cmds:
- task --list-all
build-all-arm64:
deps:
- build-all-upstream-arm64
- build-all-source-arm64
- build-debug-arm64
build-all-amd64:
deps:
- build-all-upstream-amd64
- build-all-source-amd64
- build-debug-amd64
build-all-upstream-arm64:
cmds:
- docker build -t alpine-apk-aarch64 -f alpine-apk/Dockerfile .
- docker build -t amzn2-aarch64 -f centos/Dockerfile --build-arg RESTY_IMAGE_BASE=amazonlinux --build-arg RESTY_IMAGE_TAG=2 --build-arg RESTY_YUM_REPO="https://openresty.org/package/amazon/openresty.repo" --build-arg RESTY_RPM_DIST="amzn2" --build-arg RESTY_RPM_ARCH="aarch64" .
- docker build -t rocky-aarch64 -f fedora/Dockerfile --build-arg RESTY_IMAGE_BASE=rockylinux --build-arg RESTY_IMAGE_TAG=8.5 --build-arg RESTY_YUM_REPO="https://openresty.org/package/rocky/openresty.repo" --build-arg RESTY_RPM_DIST="el8" --build-arg RESTY_RPM_ARCH="aarch64" .
- docker build -t centos-aarch64 -f centos/Dockerfile --build-arg RESTY_RPM_ARCH=aarch64 .
- docker build -t centos7-aarch64 -f centos7/Dockerfile --build-arg RESTY_RPM_ARCH=aarch64 .
- docker build -t fedora-aarch64 -f fedora/Dockerfile --build-arg RESTY_RPM_ARCH=aarch64 .
- docker build -t bookworm-aarch64 -f bookworm/Dockerfile --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" --build-arg RESTY_APT_ARCH="arm64" .
- docker build -t bullseye-aarch64 -f bullseye/Dockerfile --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" .
- docker build -t buster-aarch64 -f buster/Dockerfile --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" .
build-all-upstream-amd64:
cmds:
- docker build -t alpine-apk-amd64 -f alpine-apk/Dockerfile .
- docker build -t amzn2-amd64 -f centos/Dockerfile --build-arg RESTY_IMAGE_BASE=amazonlinux --build-arg RESTY_IMAGE_TAG=2 --build-arg RESTY_YUM_REPO="https://openresty.org/package/amazon/openresty.repo" --build-arg RESTY_RPM_DIST="amzn2" --build-arg RESTY_RPM_ARCH="x86_64" .
- docker build -t rocky-amd64 -f fedora/Dockerfile --build-arg RESTY_IMAGE_BASE=rockylinux --build-arg RESTY_IMAGE_TAG=8.5 --build-arg RESTY_YUM_REPO="https://openresty.org/package/rocky/openresty.repo" --build-arg RESTY_RPM_DIST="el8" --build-arg RESTY_RPM_ARCH="x86_64" .
- docker build -t centos-amd64 -f centos/Dockerfile --build-arg RESTY_RPM_ARCH=x86_64 .
- docker build -t centos7-amd64 -f centos7/Dockerfile --build-arg RESTY_RPM_ARCH=x86_64 .
- docker build -t fedora-amd64 -f fedora/Dockerfile --build-arg RESTY_RPM_ARCH=x86_64 .
- docker build -t bookworm-amd64 -f bookworm/Dockerfile --build-arg RESTY_APT_ARCH=amd64 .
- docker build -t bullseye-amd64 -f bullseye/Dockerfile --build-arg RESTY_APT_ARCH=amd64 .
- docker build -t buster-amd64 -f buster/Dockerfile --build-arg RESTY_APT_ARCH=amd64 .
# Just uses host arch with aarch64 tags...
# TODO: Should fail if arch is wrong, perhaps add pre-flight check
build-all-source-arm64:
cmds:
- docker build -t alpine-aarch64 -f alpine/Dockerfile .
- docker build -t bionic-aarch64 -f bionic/Dockerfile .
- docker build -t focal-aarch64 -f focal/Dockerfile .
- docker build -t jammy-aarch64 -f jammy/Dockerfile .
- docker build -t noble-aarch64 -f noble/Dockerfile .
# Just uses host arch with amd64 tags...
# TODO: Should fail if arch is wrong, perhaps add pre-flight check
build-all-source-amd64:
cmds:
- docker build -t alpine-amd64 -f alpine/Dockerfile .
- docker build -t bionic-amd64 -f bionic/Dockerfile .
- docker build -t focal-amd64 -f focal/Dockerfile .
- docker build -t jammy-amd64 -f jammy/Dockerfile .
- docker build -t noble-amd64 -f noble/Dockerfile .
# Builds all source on host arch platform without tags
build-all-source:
cmds:
- docker build -f alpine/Dockerfile .
- docker build -f bionic/Dockerfile .
- docker build -f focal/Dockerfile .
- docker build -f jammy/Dockerfile .
- docker build -f noble/Dockerfile .
build-debug-arm64:
- docker build -t bullseye-debug-aarch64 -f bullseye/Dockerfile.debug --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" .
- docker build -t bullseye-valgrind-aarch64 -f bullseye/Dockerfile.valgrind --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" .
build-debug-amd64:
- docker build -t bullseye-debug-amd64 -f bullseye/Dockerfile.debug .
- docker build -t bullseye-valgrind-amd64 -f bullseye/Dockerfile.valgrind .