Commit a94d1c91 by joelanders

add CNAME. only deploy staging branch

parent 0d01e36c
Pipeline #219 passed with stages
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