Commit f3105dd1 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

See if `image: node:latest` works

parent db59e6a5
Pipeline #30781 failed with stages
in 55 seconds
......@@ -18,7 +18,7 @@ variables:
SSH_OWNER_KEY: secret-key
SSH_APACHE: username
SSH_APACHE_KEY: secret-key
stages:
- build
- test
......@@ -27,7 +27,7 @@ stages:
build:
stage: build
image: ebiwd/node-bower-gulp:6
image: node:latest
tags:
- docker
before_script:
......@@ -48,7 +48,7 @@ test:
- docker
script:
# test .htaccess has been generated
- if [ ! -f ${CI_PROJECT_DIR}/dist/.htaccess ]; then echo "Missing .htaccess"; exit 1; fi
- if [ ! -f ${CI_PROJECT_DIR}/dist/.htaccess ]; then echo "Missing .htaccess"; exit 1; fi
# test index.html has been generated
- if [ ! -f ${CI_PROJECT_DIR}/dist/index.html ]; then echo "Missing index.html"; exit 1; fi
......@@ -68,7 +68,7 @@ deploy_dev: &deploy
VMS: ${DEV_SERVER}
stage: deploy
script:
- for VM in ${VMS}; do
- for VM in ${VMS}; do
rsync -acv --delete-after ${CI_PROJECT_DIR}/dist/. ${SSH_OWNER}@${VM}:${DEST_PATH}/;
ssh -tt ${SSH_APACHE}@${VM} '/etc/init.d/httpd configtest';
ssh -tt ${SSH_APACHE}@${VM} 'sudo /etc/init.d/httpd stop; sudo /etc/init.d/memcached stop; sudo /etc/init.d/rh-php56-php-fpm stop' || true;
......@@ -81,14 +81,14 @@ deploy_dev: &deploy
name: ${DRUPAL_ENV}
url: ${URL}
deploy_stage:
deploy_stage:
<<: *deploy
variables:
DRUPAL_ENV: stage
URL: ${STAGE_URL}
VMS: ${STAGE_SERVER}
deploy_prod:
deploy_prod:
<<: *deploy
only:
- tags
......@@ -96,17 +96,17 @@ deploy_prod:
DRUPAL_ENV: prod
URL: ${PROD_URL}
VMS: ${PROD_SERVER}
validate_dev:
stage: validate
script:
- curl -L ${DEV_URL} | cmp ${CI_PROJECT_DIR}/dist/index.html -
only:
only:
- master
validate_prod:
stage: validate
script:
- curl -L ${PROD_URL} | cmp ${CI_PROJECT_DIR}/dist/index.html -
only:
only:
- tags
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 to comment