Skip to content

Commit

Permalink
Adding CircleCI back
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-vh committed Jul 25, 2018
1 parent 4e036bd commit 3c3d207
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11-stretch
steps:
- run: echo "ik heb geen build"
deploy:
machine:
enabled: true
steps:
- run: ssh -o "StrictHostKeyChecking no" $SSH_USER@$SSH_HOST "~/deploy.sh"
workflows:
version: 2
build_and_deploy:
jobs:
- build
- deploy
7 changes: 7 additions & 0 deletions .circleci/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
cd ~/culturizedemo
git reset --hard
git pull
git checkout master
cd /var/www/html
cp -r ~/culturizedemo/*

0 comments on commit 3c3d207

Please sign in to comment.