ci 521 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. cd $(dirname $0)/..
  4. ./scripts/build
  5. ./scripts/test
  6. ./scripts/validate
  7. ./scripts/prepare
  8. ./scripts/package
  9. ./scripts/integration-test
  10. echo "--- Run"
  11. echo "github-release release --user rancher --repo os --tag ${VERSION} --pre-release --draft"
  12. for file in $(ls dist/artifacts/); do
  13. if [ "$file" != "installer.tar" ]; then
  14. echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${file} --name ${file}"
  15. fi
  16. done
  17. echo
  18. cat dist/images | sed 's/^/docker push /'