Commit 40a61ffe authored by Thomas Löffler's avatar Thomas Löffler

Cleanup of gitlab-ci.yml and change to default new stage server

parent 21cf16a7
Pipeline #5928 failed with stages
in 30 seconds
......@@ -10,68 +10,3 @@ variables:
DUMP_USER: "tthreeorgstage"
DUMP_EXCLUDE_TABLES_LIST: "be_groups,be_sessions,be_users,cf_cache_hash,cf_cache_hash_tags,cf_cache_imagesizes,cf_cache_imagesizes_tags,cf_cache_news_category,cf_cache_news_category_tags,cf_cache_pages,cf_cache_pages_tags,cf_cache_pagesection,cf_cache_pagesection_tags,cf_cache_rootline,cf_cache_rootline_tags,cf_extbase_datamapfactory_datamap,cf_extbase_datamapfactory_datamap_tags,cf_extbase_object,cf_extbase_object_tags,cf_extbase_reflection,cf_extbase_reflection_tags,cf_tx_solr,cf_tx_solr_configuration,cf_tx_solr_configuration_tags,cf_tx_solr_tags,fe_groups,fe_sessions,fe_users,sys_domain,sys_log,tx_solr_cache,tx_solr_cache_tags"
PHP_EXECUTABLE: "/opt/php/php72/bin/php"
build:
stage: build
image: composer:1
variables:
GIT_STRATEGY: "fetch"
before_script:
- export COMPOSER_CACHE_DIR=/cache/composer
- composer config store-auths false
- composer config http-basic.git-t3o.typo3.org gitlab-ci-token ${CI_BUILD_TOKEN}
script:
- composer install --no-dev --ignore-platform-reqs
artifacts:
paths:
- ./
expire_in: '1h'
except:
- assets
layout:
stage: layout
image: node:8
before_script:
- cd private/typo3conf/ext/t3olayout/Build
- npm config set cache /cache/npm
script:
- npm install
- npm run build
- rm -Rf node_modules
artifacts:
paths:
- ./
expire_in: '7d'
dependencies:
- build
except:
- assets
.deploy-template: &deploy_template
stage: deploy
image:
name: "torvitas/deployer:4.0.0-alpine"
entrypoint: [""]
before_script:
- mkdir -p /root/.ssh/
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_STAGE" | ssh-add -
- echo "$SSH_PRIVATE_KEY_PRODUCTION" | ssh-add -
- ssh-keyscan -p ${STAGE_PORT} ${STAGE_HOST} >> /root/.ssh/known_hosts
- ssh-keyscan -p ${PRODUCTION_PORT} ${PRODUCTION_HOST} >> /root/.ssh/known_hosts
script:
- dep -f./.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
dependencies:
- layout
except:
- assets
deploy-develop:
<<: *deploy_template
environment:
name: develop
url: https://${STAGE_HOST}
only:
- develop
- task/new-server
......@@ -7,12 +7,6 @@ master:
deploy_path: ~/ci
php: /opt/php/php70/bin/php
develop:
stage: stage
host: srv200.typo3.org
user: tthreeorgstage
forward_agent: true
deploy_path: ~/ci
task/new-server:
stage: stage
port: 22200
host: stage-v9.typo3.org
......
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