justfile 903 B

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