Update .gitlab-ci.yml file
This commit is contained in:
@@ -22,18 +22,18 @@ default:
|
|||||||
- apk add zip
|
- apk add zip
|
||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- test
|
- release
|
||||||
|
|
||||||
test-job: # This job runs in the deploy stage.
|
|
||||||
stage: test # It only runs when *both* jobs in the test stage complete successfully.
|
|
||||||
environment: production
|
|
||||||
script:
|
|
||||||
- echo "Prepare to remove git "
|
|
||||||
- uname -a
|
|
||||||
- rm -rf .git
|
|
||||||
- zip -r WPE2.zip *
|
|
||||||
|
|
||||||
release:
|
release_job:
|
||||||
name: '$CI_COMMIT_SHORT_SHA'
|
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
description: '$CI_COMMIT_MESSAGE'
|
script:
|
||||||
|
- echo "Prepare to remove git "
|
||||||
|
- uname -a
|
||||||
|
- rm -rf .git
|
||||||
|
- zip -r WPE2.zip *
|
||||||
|
|
||||||
|
release:
|
||||||
|
tag_name: $CI_COMMIT_TAG
|
||||||
|
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
|
||||||
|
description: '$CI_COMMIT_MESSAGE'
|
||||||
Reference in New Issue
Block a user