Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.5 KiB

  1. #!/bin/bash
  2. version="$1"
  3. mkdir -p "binairies/""$version"
  4. name="binairies/""$version""/linx-server-v""$version""_"
  5. GOOS=darwin GOARCH=amd64 go build -o "$name"osx-amd64
  6. rice append --exec "$name"osx-amd64
  7. GOOS=darwin GOARCH=386 go build -o "$name"osx-386
  8. rice append --exec "$name"osx-386
  9. GOOS=freebsd GOARCH=amd64 go build -o "$name"freebsd-amd64
  10. rice append --exec "$name"freebsd-amd64
  11. GOOS=freebsd GOARCH=386 go build -o "$name"freebsd-386
  12. rice append --exec "$name"freebsd-386
  13. GOOS=openbsd GOARCH=amd64 go build -o "$name"openbsd-amd64
  14. rice append --exec "$name"openbsd-amd64
  15. GOOS=openbsd GOARCH=386 go build -o "$name"openbsd-386
  16. rice append --exec "$name"openbsd-386
  17. GOOS=linux GOARCH=arm go build -o "$name"linux-arm
  18. rice append --exec "$name"linux-arm
  19. GOOS=linux GOARCH=amd64 go build -o "$name"linux-amd64
  20. rice append --exec "$name"linux-amd64
  21. GOOS=linux GOARCH=386 go build -o "$name"linux-386
  22. rice append --exec "$name"linux-386
  23. GOOS=windows GOARCH=amd64 go build -o "$name"windows-amd64.exe
  24. rice append --exec "$name"windows-amd64.exe
  25. GOOS=windows GOARCH=386 go build -o "$name"windows-386.exe
  26. rice append --exec "$name"windows-386.exe
  27. cd linx-genkey
  28. name="../binairies/""$version""/linx-genkey-v""$version""_"
  29. GOOS=darwin GOARCH=amd64 go build -o "$name"osx-amd64
  30. GOOS=darwin GOARCH=386 go build -o "$name"osx-386
  31. GOOS=freebsd GOARCH=amd64 go build -o "$name"freebsd-amd64
  32. GOOS=freebsd GOARCH=386 go build -o "$name"freebsd-386
  33. GOOS=openbsd GOARCH=amd64 go build -o "$name"openbsd-amd64
  34. GOOS=openbsd GOARCH=386 go build -o "$name"openbsd-386
  35. GOOS=linux GOARCH=arm go build -o "$name"linux-arm
  36. GOOS=linux GOARCH=amd64 go build -o "$name"linux-amd64
  37. GOOS=linux GOARCH=386 go build -o "$name"linux-386
  38. GOOS=windows GOARCH=amd64 go build -o "$name"windows-amd64.exe
  39. GOOS=windows GOARCH=386 go build -o "$name"windows-386.exe
  40. cd ..
  41. cd linx-cleanup
  42. name="../binairies/""$version""/linx-cleanup-v""$version""_"
  43. GOOS=darwin GOARCH=amd64 go build -o "$name"osx-amd64
  44. GOOS=darwin GOARCH=386 go build -o "$name"osx-386
  45. GOOS=freebsd GOARCH=amd64 go build -o "$name"freebsd-amd64
  46. GOOS=freebsd GOARCH=386 go build -o "$name"freebsd-386
  47. GOOS=openbsd GOARCH=amd64 go build -o "$name"openbsd-amd64
  48. GOOS=openbsd GOARCH=386 go build -o "$name"openbsd-386
  49. GOOS=linux GOARCH=arm go build -o "$name"linux-arm
  50. GOOS=linux GOARCH=amd64 go build -o "$name"linux-amd64
  51. GOOS=linux GOARCH=386 go build -o "$name"linux-386
  52. GOOS=windows GOARCH=amd64 go build -o "$name"windows-amd64.exe
  53. GOOS=windows GOARCH=386 go build -o "$name"windows-386.exe
  54. cd ..