build.sh 447 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. set -e
  3. go mod tidy
  4. go mod vendor
  5. echo
  6. echo "# Local Build"
  7. go build -o ~/bin/helios cmd/main.go
  8. echo
  9. echo "# Docker Build"
  10. docker build -t helios:latest .
  11. du -sm ~/bin/helios
  12. docker image ls helios:latest
  13. echo
  14. echo "# Tag"
  15. docker tag helios:latest bmallenxs/heliosci:latest
  16. docker tag helios:latest heliosci/helios:latest
  17. echo
  18. echo "# Publish"
  19. echo docker push bmallenxs/heliosci:latest
  20. echo docker push heliosci/helios:latest