diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d7e66b0..bc3746f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,77 +70,44 @@ test1: when: manual test2: + extends: .ansible stage: integration environment: name: test2 url: https://test2.startinblox.com - before_script: - - npm ci --cache .npm --prefer-offline --only=production - script: - - echo "$APP_CONFIG_TEST2" > config.json - - echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key - - npm run build - - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test2@astral.startinblox.com:~/front/ only: - /^feature\/.*/ when: manual - tags: - - deploy test3: + extends: .ansible stage: integration environment: name: test3 url: https://test3.startinblox.com - before_script: - - npm ci --cache .npm --prefer-offline --only=production - script: - - echo "$APP_CONFIG_TEST3" > config.json - - echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key - - sed -i -E 's/component-chat@([0-9]+).([0-9]+)/component-chat@beta/g' src/dependencies.pug - - npm run build - - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test3@astral.startinblox.com:~/front/ only: - /^feature\/.*/ when: manual - tags: - - deploy stg1: + extends: .ansible stage: acceptance environment: name: stg1 url: https://stg1.startinblox.com - before_script: - - npm ci --cache .npm --prefer-offline --only=production - script: - - echo "$APP_CONFIG_STG1" > config.json - - echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key - - npm run build - - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg1@astral.startinblox.com:~/front/ only: - /^release\/.*/ when: manual - tags: - - deploy stg2: + extends: .ansible stage: acceptance environment: name: stg2 url: https://stg2.startinblox.com - before_script: - - npm ci --cache .npm --prefer-offline --only=production - script: - - echo "$APP_CONFIG_STG2" > config.json - - echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key - - npm run build - - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg2@astral.startinblox.com:~/front/ only: - /^release\/.*/ when: manual - tags: - - deploy ## RELEASE TAGGING ##