variables: GIT_STRATEGY: "none" GIT_SSL_NO_VERIFY: "true" before_script: - apk add bash --update stages: - build - deploy build: stage: build variables: GIT_STRATEGY: "clone" GIT_SUBMODULE_STRATEGY: "recursive" script: - ./.gitlab-ci/scripts/composer.sh config store-auths false - ./.gitlab-ci/scripts/composer.sh config http-basic.git-t3o.typo3.org gitlab-ci-token ${CI_BUILD_TOKEN} - ./.gitlab-ci/scripts/composer.sh install artifacts: paths: - ./ expire_in: '7d' 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} .deploy-template: &deploy_template stage: deploy script: - apk add openssh-client - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | ssh-add - - ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME} when: manual deploy-master: <<: *deploy_template environment: name: master url: https://extensions.typo3.org/ only: - master deploy-develop: <<: *deploy_template environment: name: develop url: https://extensions-dev.typo3.org/ only: - develop