From 3d245660c53da4b4da832c3139329e091dbfac3d Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 4 Aug 2018 21:26:33 +0200 Subject: Updated .gitlab-ci.yaml to create a release archive --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fed9ea0..b5bdba41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,7 @@ before_script: .test_template: &test_definition stage: test artifacts: - name: "${CI_JOB_NAME}_${CI_PROJECT_ID}" + name: "${CI_JOB_NAME}_${CI_JOB_ID}" expire_in: 1 week paths: - ./coverage/ @@ -91,6 +91,17 @@ test:7.1: composer --no-ansi install --no-dev composer --no-ansi dump-autoload --optimize +build_release_file: + <<: *deploy_definition + artifacts: + name: "release_${CI_COMMIT_REF_SLUG}_${CI_JOB_ID}_${CI_COMMIT_SHA}" + expire_in: 1 week + paths: + - ./release/ + script: + - *deployment_dependencies + - rsync -vAax --exclude '.git*' --exclude .composer/ --exclude coverage/ --exclude node_modules/ --exclude release/ ./ release/ + deploy_staging: <<: *deploy_definition environment: -- cgit v1.2.3-54-g00ecf