-
Notifications
You must be signed in to change notification settings - Fork 10
/
justfile
40 lines (33 loc) · 997 Bytes
/
justfile
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
commit := `git rev-parse --short HEAD`
thirdPartyLicenseFile := "THIRD_PARTY_LICENSES.txt"
default:
just --list
build-local:
npm install
npx parcel build src/index.html
build IMAGE_TAG RELEASE_VERSION: build-local
docker buildx build \
--rm \
--platform "linux/amd64" \
-f 'Dockerfile.cross' \
--provenance=false \
-t {{IMAGE_TAG}}-amd64 \
--build-arg version={{RELEASE_VERSION}} \
--build-arg commit={{commit}} \
--push \
.
docker buildx build \
--rm \
--platform "linux/arm64" \
-f 'Dockerfile.cross' \
--provenance=false \
-t {{IMAGE_TAG}}-arm64 \
--build-arg version={{RELEASE_VERSION}} \
--build-arg commit={{commit}} \
--push \
.
manifest-tool push from-args \
--platforms "linux/amd64,linux/arm64" \
--template {{IMAGE_TAG}}-ARCH \
--target {{IMAGE_TAG}}
rm -f {{thirdPartyLicenseFile}}