Update .gitlab-ci.yml file

This commit is contained in:
amevarashi 2024-04-29 14:48:41 +00:00
parent 5470842e47
commit 5cbce72dd9
1 changed files with 4 additions and 4 deletions

View File

@ -105,10 +105,10 @@ release_dev:
image: alpine:latest
rules:
- if: $CI_COMMIT_TAG
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
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
variables:
GIT_STRATEGY: none
GIT_STRATEGY: none # Do not clone repo and skip 'before_script'
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test"
script:
# - 'apk add gitlab-release-cli'
@ -116,7 +116,7 @@ release_dev:
- 'zip -rq rsi.zip ./'
- echo "${PACKAGE_REGISTRY_URL}"
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build.zip"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/rjw_sexperience_ideology.zip"
# release:
# 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'