Update .gitlab-ci.yml file
This commit is contained in:
@@ -22,18 +22,18 @@ default:
|
||||
- apk add zip
|
||||
|
||||
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:
|
||||
name: '$CI_COMMIT_SHORT_SHA'
|
||||
description: '$CI_COMMIT_MESSAGE'
|
||||
release_job:
|
||||
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||
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