From ca96b8f741144024e1d1e1407e6428768671fd76 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 11 Aug 2020 10:02:21 +0100 Subject: [PATCH] ci: added package.json + release --- .gitignore | 1 + .versionrc | 3 +++ deploy.sh | 4 ++++ package.json | 20 ++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 .versionrc create mode 100644 deploy.sh create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/.versionrc b/.versionrc new file mode 100644 index 0000000..37b4bcc --- /dev/null +++ b/.versionrc @@ -0,0 +1,3 @@ +{ + "tagMessageInChangeLog": true +} \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..090b4f2 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +docker stack rm commento +echo 'sleeping...zzz' +sleep 60 +docker stack deploy -c docker-compose.yml commento diff --git a/package.json b/package.json new file mode 100644 index 0000000..5b1a477 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "private": true, + "name": "commento", + "version": "0.0.1", + "description": "commento", + "scripts": { + "deploy": "sh deploy.sh", + "release": "standard-version", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://sigyl.com/git/stack/commento" + }, + "author": "Giles Bradshaw", + "license": "ISC", + "devDependencies": { + "standard-version": "git+https://github.com/gilesbradshaw/standard-version.git" + } +}