Commit b799cf58 by Jun Matsushita

Merge branch 'cname-no-deploy-master' into 'master'

add CNAME. only deploy staging branch



See merge request !4
parents 0d01e36c a94d1c91
Pipeline #220 canceled with stage
in 0 seconds
#!/bin/bash
set -eu
# TODO: quick hack until we deploy to different hosts for staging/prod
if [[ ! $CI_BUILD_REF_NAME = 'staging' ]]; then
exit 0
fi
SSH_KEYFILE="$CI_PROJECT_DIR/.ssh_key"
SSH_WRAPPER="$CI_PROJECT_DIR/.ssh_wrapper"
......@@ -20,6 +25,7 @@ git config --global user.email $GH_EMAIL
git config --global user.name $GH_USERNAME
cd $CI_PROJECT_DIR/_site/openintegrity.org
cp $CI_PROJECT_DIR/CNAME .
git init
git remote add github git@github.com:openintegrity/openintegrity.org.git || true
mkdir ~/.ssh || true
......
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 sign in to comment