From 7a63b9566115cd459eed9db401db83b979dfe4ea Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 12:21:55 +0000 Subject: [PATCH 1/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8be4d8f..300b80e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -108,10 +108,12 @@ release_dev: 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 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' + - 'zip -r rsi.zip ./' + - | + curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build" +# 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. From 2a88cba623c6bb6892e4619d33144d7d6621340d Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 12:34:56 +0000 Subject: [PATCH 2/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 300b80e..dde3b80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,6 +109,7 @@ release_dev: - if: $CI_COMMIT_BRANCH == "ci-test" # Run this job when commits are pushed or merged to the dev branch script: # - 'apk add gitlab-release-cli' + - apk add zip curl - 'zip -r rsi.zip ./' - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build" From 002cf935182fc5c668afc2cfe8ea2d8addd1b34d Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 12:39:37 +0000 Subject: [PATCH 3/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dde3b80..4e6d0b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ variables: # 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! SOURCE_CODE_PATH: 'Source/' + PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test" # ### Define global cache rule # @@ -110,7 +111,7 @@ release_dev: script: # - 'apk add gitlab-release-cli' - apk add zip curl - - 'zip -r rsi.zip ./' + - 'zip -rq rsi.zip ./' - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file rsi.zip "${PACKAGE_REGISTRY_URL}/test_build" # release: From 65ea629c2c2aa175380d360a1a63c2d530b8135a Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 13:38:00 +0000 Subject: [PATCH 4/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e6d0b1..0d416c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,6 @@ variables: # 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! SOURCE_CODE_PATH: 'Source/' - PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/test" # ### Define global cache rule # @@ -107,13 +106,16 @@ release_dev: 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 + - 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: # - 'apk add gitlab-release-cli' - apk add zip curl - '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: # 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' From 5470842e47650829ef18bbb79ce34ebc003958f8 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 14:13:21 +0000 Subject: [PATCH 5/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d416c5..ea910b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,6 +114,7 @@ release_dev: # - '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}/test_build.zip" # release: From 5cbce72dd938546e34d6a4eb25b80ae91693dca9 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 14:48:41 +0000 Subject: [PATCH 6/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea910b4..8457e68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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' From 0009ae3f255ab87eb1eec78c75e42afe9f0832b8 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 29 Apr 2024 16:51:35 +0000 Subject: [PATCH 7/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8457e68..5b77986 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,7 +109,7 @@ release_dev: - 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/test" + PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/rsi/ci_test" script: # - 'apk add gitlab-release-cli' - apk add zip curl