Unverified Commit 65d99f8b authored by liuzheng's avatar liuzheng

fix: sed place bug

parent 1b2b0df3
......@@ -3,9 +3,9 @@ before_install:
- echo "`date -u '+%Y-%m-%d %H:%M:%S'` Start to build Luna"
- docker pull node:latest
install:
- sed -i 's/{{BUILD_NUMBER}}/${BUILD_NUMBER}/g' src/environment/environment.prod.ts
- docker run -i -v `pwd`:/data -w /data node sh -c "npm i && npm rebuild node-sass&& npm run-script build"
script:
- sed -i 's/{{BUILD_NUMBER}}/${BUILD_NUMBER}/g' src/environment/environment.prod.ts
- docker build -t registry.fit2cloud.com/jumpserver/luna:test .
- docker push registry.fit2cloud.com/jumpserver/luna:test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment