stages: - publish - deploy publish: image: node:4 stage: publish script: - npm config set cache /cache - git config --global user.email "gitlab-ci@gatehub.net" - git config --global user.name "gitlab-ci" - mkdir -p $HOME/.ssh && echo "$SSH_KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa - echo "StrictHostKeyChecking no" > $HOME/.ssh/config - git remote set-url origin git@gitlab.default.cloud.gatehub.net:gatehub/wallet.webapp.git - npm install -loglevel silent -g grunt-cli bower - npm install -loglevel silent - bower install --allow-root -F - grunt build - grunt gh-pages:staging only: - master publish-production: image: node:4 stage: publish script: - npm config set cache /cache - git config --global user.email "gitlab-ci@gatehub.net" - git config --global user.name "gitlab-ci" - mkdir -p $HOME/.ssh && echo "$SSH_KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa - echo "StrictHostKeyChecking no" > $HOME/.ssh/config - git remote set-url origin git@gitlab.default.cloud.gatehub.net:gatehub/wallet.webapp.git - npm install -loglevel silent -g grunt-cli bower - npm install -loglevel silent - bower install --allow-root -F - grunt build:production - grunt gh-pages:production only: - production staging: image: gatehub/deploy stage: deploy script: - kubectl rolling-update proxy --namespace=dev --image=docker-registry.default.cloud.gatehub.net/proxy:master only: - master