.gitlab-ci.yml 958 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
variables:
    GIT_STRATEGY: "none"

stages:
    - build
    - deploy

build:
    stage: build
10 11 12
    variables:
        GIT_STRATEGY: "clone"
        GIT_SUBMODULE_STRATEGY: "recursive"
13
    script:
14 15
        - ./scripts/composer.sh config -g store-auths false
        - ./scripts/composer.sh config http-basic.git-t3o.typo3.org ${GIT_USER_NAME} ${GIT_PASSWORD}
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
        - ./scripts/composer.sh install
    artifacts:
        paths:
            - ./
        expire_in: '7d'
    environment: ${CI_BUILD_REF_NAME}

deploy-master:
    stage: deploy
    script:
        - ./scripts/deployer.sh ${CI_BUILD_REF_NAME}
    environment:
        name: master
        url: https://t3o-master.typo3.org/
    when: manual
    only:
        - master

deploy-develop:
    stage: deploy
    script:
        - ./scripts/deployer.sh ${CI_BUILD_REF_NAME}
    environment:
        name: develop
        url: https://t3o-develop.typo3.org/
    when: manual
    only:
        - develop