variables: GIT_STRATEGY: "none" GIT_SSL_NO_VERIFY: "true" before_script: - apk add bash --update stages: - build - layout - deploy - dump 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: '1h' environment: ${CI_BUILD_REF_NAME} layout: stage: layout image: node:7 before_script: - cd html/typo3conf/ext/t3olayout/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 before_script: - apk add openssh-client - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | ssh-add - script: - ./.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://extensions.typo3.org/ only: - master deploy-develop: <<: *deploy_template environment: name: develop url: https://extensions-dev.typo3.org/ only: - develop dump-assets: <<: *deploy_template stage: dump artifacts: paths: - ./assets/ expire_in: '7d' script: - rsync -ah -e "ssh -p 22179" extensionsdev@extensions-dev.typo3.org:ci/shared/ ./assets/ dependencies: when: except: - master