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: node:7 before_script: - cd Build script: - npm install - npm run build artifacts: paths: - ./ expire_in: '7d' environment: ${CI_BUILD_REF_NAME} dependencies: - build .deploy-template: &deploy_template stage: deploy script: - apk add openssh-client rsync - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | ssh-add - - VERSION=4.0.0-alpine ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME} 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