Update .gitlab-ci.yml file
This commit is contained in:
parent
002cf93518
commit
65ea629c2c
|
@ -16,7 +16,6 @@ variables:
|
||||||
# 3) A relative path to the source code from project repository root.
|
# 3) A relative path to the source code from project repository root.
|
||||||
# NOTE: Please edit this path so it matches the structure of your project!
|
# NOTE: Please edit this path so it matches the structure of your project!
|
||||||
SOURCE_CODE_PATH: 'Source/'
|
SOURCE_CODE_PATH: 'Source/'
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test"
|
|
||||||
|
|
||||||
# ### Define global cache rule
|
# ### Define global cache rule
|
||||||
#
|
#
|
||||||
|
@ -107,13 +106,16 @@ release_dev:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never # Do not run this job when a tag is created manually
|
when: never # Do not run this job when a tag is created manually
|
||||||
- if: $CI_COMMIT_BRANCH == "ci-test" # Run this job when commits are pushed or merged to the dev branch
|
- if: $CI_COMMIT_BRANCH == "ci-test" # Run this job when commits are pushed or merged to the dev branch
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test"
|
||||||
script:
|
script:
|
||||||
# - 'apk add gitlab-release-cli'
|
# - 'apk add gitlab-release-cli'
|
||||||
- apk add zip curl
|
- apk add zip curl
|
||||||
- 'zip -rq rsi.zip ./'
|
- 'zip -rq rsi.zip ./'
|
||||||
- |
|
- |
|
||||||
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build"
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build.zip"
|
||||||
# release:
|
# release:
|
||||||
# tag_name: '$CI_COMMIT_BRANCH-$CI_PIPELINE_IID' # The version is incremented per pipeline.
|
# tag_name: '$CI_COMMIT_BRANCH-$CI_PIPELINE_IID' # The version is incremented per pipeline.
|
||||||
# description: 'Automated release based on commit $CI_COMMIT_SHORT_SHA $CI_COMMIT_TAG'
|
# description: 'Automated release based on commit $CI_COMMIT_SHORT_SHA $CI_COMMIT_TAG'
|
||||||
|
|
Loading…
Reference in New Issue