variables: GIT_STRATEGY: "none" GIT_SSL_NO_VERIFY: "true" before_script: - apk add bash --update stages: - build - layout - deploy build: stage: build image: composer variables: GIT_STRATEGY: "clone" GIT_SUBMODULE_STRATEGY: "recursive" script: - composer config store-auths false - composer config http-basic.git-t3o.typo3.org gitlab-ci-token ${CI_BUILD_TOKEN} - composer install artifacts: paths: - ./ expire_in: '1h' environment: ${CI_BUILD_REF_NAME} layout: stage: layout image: montoias/docker-nodejs-bower-grunt-compass:v2 before_script: - cd html/typo3conf/ext/t3olayout/Resources/Private script: - npm install - grunt artifacts: paths: - ./ expire_in: '7d' environment: ${CI_BUILD_REF_NAME} dependencies: - build .deploy-template: &deploy_template image: php:7.0-alpine stage: deploy script: - apk add openssh-client - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | ssh-add - - php surf.phar deploy Development when: manual dependencies: - layout deploy-master: <<: *deploy_template environment: name: master url: https://typo3.org/ only: - master deploy-develop: <<: *deploy_template environment: name: develop url: https://vpro0100.proserver.punkt.de/ only: - develop - 9-add-deployment-on-staging-server