.gitlab-ci.yml 1.12 KB
Newer Older
1 2
variables:
    GIT_STRATEGY: "none"
3
    GIT_SSL_NO_VERIFY: "true"
4 5 6 7 8 9 10

stages:
    - build
    - deploy

build:
    stage: build
11 12 13
    variables:
        GIT_STRATEGY: "clone"
        GIT_SUBMODULE_STRATEGY: "recursive"
14
    script:
Sascha Marcel Schmidt's avatar
Sascha Marcel Schmidt committed
15 16 17
        - pwd
        - ls -lah
        - ls -lah ./.gitlab-ci/
Sascha Marcel Schmidt's avatar
Sascha Marcel Schmidt committed
18 19
        - cat ./.gitlab-ci/composer.sh
        - ./.gitlab-ci/deployer.sh --help
20 21 22
        - ./.gitlab-ci/composer.sh config -g store-auths false
        - ./.gitlab-ci/composer.sh config http-basic.git-t3o.typo3.org ${GIT_USER_NAME} ${GIT_PASSWORD}
        - ./.gitlab-ci/composer.sh install
23 24 25 26 27 28 29 30 31
    artifacts:
        paths:
            - ./
        expire_in: '7d'
    environment: ${CI_BUILD_REF_NAME}

deploy-master:
    stage: deploy
    script:
32
        - ./.gitlab-ci/deployer.sh ${CI_BUILD_REF_NAME}
33 34 35 36 37 38 39 40 41 42
    environment:
        name: master
        url: https://t3o-master.typo3.org/
    when: manual
    only:
        - master

deploy-develop:
    stage: deploy
    script:
43
        - ./.gitlab-ci/deployer.sh ${CI_BUILD_REF_NAME}
44 45 46 47 48 49
    environment:
        name: develop
        url: https://t3o-develop.typo3.org/
    when: manual
    only:
        - develop