.gitlab-ci.yml 1.11 KB
Newer Older
1 2
variables:
    GIT_STRATEGY: "none"
3
    GIT_SSL_NO_VERIFY: "true"
4

5 6 7
before_script:
    - apk add bash --update

8 9 10 11 12 13
stages:
    - build
    - deploy

build:
    stage: build
14 15 16
    variables:
        GIT_STRATEGY: "clone"
        GIT_SUBMODULE_STRATEGY: "recursive"
17
    script:
18 19 20
        - ./.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
21 22 23 24 25 26 27 28 29
    artifacts:
        paths:
            - ./
        expire_in: '7d'
    environment: ${CI_BUILD_REF_NAME}

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

deploy-develop:
    stage: deploy
    script:
41
        - ./.gitlab-ci/scripts/deployer.sh -f/src/data/etc/deployer/ter/deploy.php deploy ${CI_BUILD_REF_NAME}
42 43 44 45 46 47
    environment:
        name: develop
        url: https://t3o-develop.typo3.org/
    when: manual
    only:
        - develop