2
0

justfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. commit := `git rev-parse --short HEAD`
  2. thirdPartyLicenseFile := "THIRD_PARTY_LICENSES.txt"
  3. default:
  4. just --list
  5. build-local:
  6. npm install
  7. npx parcel build src/index.html
  8. build IMAGE_TAG RELEASE_VERSION: build-local
  9. cp ../{{thirdPartyLicenseFile}} .
  10. docker buildx build \
  11. --rm \
  12. --platform "linux/amd64" \
  13. -f 'Dockerfile.cross' \
  14. --provenance=false \
  15. -t {{IMAGE_TAG}}-amd64 \
  16. --build-arg version={{RELEASE_VERSION}} \
  17. --build-arg commit={{commit}} \
  18. --push \
  19. .
  20. docker buildx build \
  21. --rm \
  22. --platform "linux/arm64" \
  23. -f 'Dockerfile.cross' \
  24. --provenance=false \
  25. -t {{IMAGE_TAG}}-arm64 \
  26. --build-arg version={{RELEASE_VERSION}} \
  27. --build-arg commit={{commit}} \
  28. --push \
  29. .
  30. manifest-tool push from-args \
  31. --platforms "linux/amd64,linux/arm64" \
  32. --template {{IMAGE_TAG}}-ARCH \
  33. --target {{IMAGE_TAG}}
  34. rm -f {{thirdPartyLicenseFile}}