Compare commits

...

7 Commits

Author SHA1 Message Date
amevarashi 0009ae3f25 Update .gitlab-ci.yml file 2024-04-29 16:51:35 +00:00
amevarashi 5cbce72dd9 Update .gitlab-ci.yml file 2024-04-29 14:48:41 +00:00
amevarashi 5470842e47 Update .gitlab-ci.yml file 2024-04-29 14:13:21 +00:00
amevarashi 65ea629c2c Update .gitlab-ci.yml file 2024-04-29 13:38:00 +00:00
amevarashi 002cf93518 Update .gitlab-ci.yml file 2024-04-29 12:39:37 +00:00
amevarashi 2a88cba623 Update .gitlab-ci.yml file 2024-04-29 12:34:56 +00:00
amevarashi 7a63b95661 Update .gitlab-ci.yml file 2024-04-29 12:21:55 +00:00
1 changed files with 15 additions and 8 deletions

View File

@ -105,13 +105,20 @@ 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 # Do not clone repo and skip 'before_script'
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/ci_test"
script:
- 'apk add gitlab-release-cli'
- 'ls -l'
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'
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
# - 'apk add gitlab-release-cli'
- apk add zip curl
- 'zip -rq rsi.zip ./'
- echo "${PACKAGE_REGISTRY_URL}"
- |
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'
# ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.