Set up deployment
This commit is contained in:
parent
9625e9cbb2
commit
579757dee2
@ -9,11 +9,12 @@
|
|||||||
"doc": "doc",
|
"doc": "doc",
|
||||||
"test": "tests"
|
"test": "tests"
|
||||||
},
|
},
|
||||||
"repository": "",
|
"repository": "gitlab:skddc/inspektor",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ember build",
|
"build": "ember build",
|
||||||
"start": "ember server",
|
"start": "ember server",
|
||||||
"test": "ember test"
|
"test": "ember test",
|
||||||
|
"deploy": "bash scripts/deploy.sh"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"broccoli-asset-rev": "^2.4.5",
|
"broccoli-asset-rev": "^2.4.5",
|
||||||
|
17
scripts/deploy.sh
Executable file
17
scripts/deploy.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
# Check out build branch
|
||||||
|
git checkout build-production
|
||||||
|
# Copy from build dir to root
|
||||||
|
cp -r dist/* .
|
||||||
|
# Add all files
|
||||||
|
git add --all
|
||||||
|
# Commit build files
|
||||||
|
git commit -m "Update build - `date -u`"
|
||||||
|
# Push to 5apps for deployment
|
||||||
|
git push 5apps build-production:master
|
||||||
|
# Push build branch to collab repo
|
||||||
|
git push origin build-production:build-production
|
||||||
|
# Go back to master branch
|
||||||
|
git checkout master
|
Loading…
x
Reference in New Issue
Block a user