forked from moparisthebest/static-curl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
41 lines (35 loc) · 1.04 KB
/
Taskfile.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
# https://taskfile.dev
version: '3'
vars:
CURL_VERSION: '{{.CURL_VERSION | default "7.83.1"}}'
PROJECT_NAME: curl
REGISTRY_SERVER: public.ecr.aws/u4i8g9e8
REGISTRY: '{{.REGISTRY_SERVER}}/{{.PROJECT_NAME}}'
tasks:
default:
cmds:
- task: buildx
silent: true
buildx:
cmds:
- |-
docker buildx build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg CURL_VERSION={{.CURL_VERSION}} \
--platform linux/amd64,linux/arm64 \
--target builder \
-t {{.REGISTRY}}:builder-{{.CURL_VERSION}} \
-t {{.REGISTRY}}:builder-latest \
--cache-from={{.REGISTRY}}:builder-{{.CURL_VERSION}} \
--push \
.
- |-
docker buildx build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg CURL_VERSION={{.CURL_VERSION}} \
--platform linux/amd64,linux/arm64 \
-t {{.REGISTRY}}:{{.CURL_VERSION}} \
-t {{.REGISTRY}}:latest \
--cache-from={{.REGISTRY}}:builder-{{.CURL_VERSION}} \
--push \
.