ci: added package json scripts
continuous-integration/drone/push Build is passing Details

added release
This commit is contained in:
Giles Bradshaw 2020-08-11 09:23:42 +01:00
parent 2d707e2080
commit 20f8600db2
5 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

3
.versionrc Normal file
View File

@ -0,0 +1,3 @@
{
"tagMessageInChangeLog": true
}

1
build.sh Normal file
View File

@ -0,0 +1 @@
docker build ghost -t ${LOCAL_DOCKER_REGISTRY}ghost

4
deploy.sh Normal file
View File

@ -0,0 +1,4 @@
docker stack rm ghost
echo 'sleeping...zzz'
sleep 60
docker stack deploy -c docker-compose.yml ghost

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"private": true,
"name": "ghost",
"version": "0.0.1",
"description": "ghost blog",
"scripts": {
"deploy": "sh deploy.sh",
"build": "sh build.sh",
"release": "standard-version",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://sigyl.com/git/stack/ghost"
},
"author": "Giles Bradshaw",
"license": "ISC",
"devDependencies": {
"standard-version": "git+https://github.com/gilesbradshaw/standard-version.git"
}
}