From 80f0786960c6813a330c1bcc45acc959561104f4 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 13:51:52 +0000 Subject: [PATCH 01/10] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94a92bb..798f8d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,7 +96,7 @@ build: artifacts: untracked: false when: on_success - expire_in: 3 days + expire_in: 1 day paths: - "*" # Incluse everything exclude: @@ -117,7 +117,17 @@ build: # script: # - 'dotnet test --no-restore' -#deploy: -# stage: deploy -# script: echo "Define your deployment script!" -# environment: production +release_dev: + stage: deploy + image: registry.gitlab.com/gitlab-org/release-cli: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 + script: + - echo "running release_job for $TAG" + release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties + tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. + description: 'Automated release based on commit $CI_COMMIT_SHA' + ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA. + From bc6c37e0ccef1c0d299abb8001e2f27d24989465 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 14:00:17 +0000 Subject: [PATCH 02/10] 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 798f8d4..30b57a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,14 +83,16 @@ cache: # in the root of project repository, so its content can be cached. # # Learn more about GitLab cache: https://docs.gitlab.com/ee/ci/caching/index.html -before_script: - - 'cd $SOURCE_CODE_PATH' - - 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY' +#before_script: +# - 'cd $SOURCE_CODE_PATH' +# - 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY' build: stage: build # ### Build all projects discovered from solution file. script: + - 'cd $SOURCE_CODE_PATH' + - 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY' - 'curl -s --create-dirs "$RJW_DLL_URL" -o ../../rjw/$RIMWORLD_VERSION/Assemblies/RJW.dll' - 'dotnet build --no-restore' artifacts: From 863dfc71dcfe7d7420c5fb62f3e78a848a064a60 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 14:03:28 +0000 Subject: [PATCH 03/10] 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 30b57a9..56e5fa3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -127,7 +127,7 @@ 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: - - echo "running release_job for $TAG" + - echo "running release_job for TAG" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. description: 'Automated release based on commit $CI_COMMIT_SHA' From 6aac2836bba93abb86e949af805622a6ffc4a148 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 14:11:08 +0000 Subject: [PATCH 04/10] 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 56e5fa3..5a72652 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -122,10 +122,10 @@ build: release_dev: stage: deploy image: registry.gitlab.com/gitlab-org/release-cli: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 +# 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 script: - echo "running release_job for TAG" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties From 12af69d11a50bd8b961bf1d4413d1e1a844f605e Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 14:42:48 +0000 Subject: [PATCH 05/10] 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 5a72652..ae59f7f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,5 +131,5 @@ release_dev: release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. description: 'Automated release based on commit $CI_COMMIT_SHA' - ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA. +# ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA. From 61b209021a2889a88e278c1e7ad797bc3b8b37c4 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 14:56:50 +0000 Subject: [PATCH 06/10] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae59f7f..e0a6f26 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,6 +130,6 @@ release_dev: - echo "running release_job for TAG" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. - description: 'Automated release based on commit $CI_COMMIT_SHA' -# ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA. + description: 'Automated release based on commit CI_COMMIT_SHA' + ref: '$CI_COMMIT_BRANCH' # The tag is created from the pipeline SHA. From 2399f2af6465e3e40bcbb693f62d69a3a7c6efcd Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 15:06:45 +0000 Subject: [PATCH 07/10] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0a6f26..7ccf58f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -127,9 +127,9 @@ 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: - - echo "running release_job for TAG" - release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties - tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. - description: 'Automated release based on commit CI_COMMIT_SHA' - ref: '$CI_COMMIT_BRANCH' # The tag is created from the pipeline SHA. + - echo "running release_job for $CI_COMMIT_SHA" +# release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties +# tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. +# description: 'Automated release based on commit CI_COMMIT_SHA' +# ref: '$CI_COMMIT_BRANCH' # The tag is created from the pipeline SHA. From e643833472267a8a12dd928e3f56603ef239f597 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 15:10:02 +0000 Subject: [PATCH 08/10] 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 7ccf58f..d9afd90 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -127,7 +127,7 @@ 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: - - echo "running release_job for $CI_COMMIT_SHA" + - 'echo "running release_job for $CI_COMMIT_SHA"' # release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties # tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. # description: 'Automated release based on commit CI_COMMIT_SHA' From 818d288cc53d18c0759cfef028365c0950743fdd Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 17:19:35 +0000 Subject: [PATCH 09/10] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9afd90..351a915 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -121,15 +121,16 @@ build: release_dev: stage: deploy - image: registry.gitlab.com/gitlab-org/release-cli:latest +# image: registry.gitlab.com/gitlab-org/release-cli:latest # this image currently is amd64 only + 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 script: - - 'echo "running release_job for $CI_COMMIT_SHA"' -# release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties -# tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. -# description: 'Automated release based on commit CI_COMMIT_SHA' -# ref: '$CI_COMMIT_BRANCH' # The tag is created from the pipeline SHA. + - 'apk add gitlab-release-cli' + release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties + tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline. + description: 'Automated release based on commit CI_COMMIT_SHA' + ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA. From 00c4eac73a9e74f9fae11da691f59e0253146649 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 28 Apr 2024 17:28:49 +0000 Subject: [PATCH 10/10] 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 351a915..dfac7b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,10 +123,10 @@ release_dev: stage: deploy # image: registry.gitlab.com/gitlab-org/release-cli:latest # this image currently is amd64 only 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 + 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 script: - 'apk add gitlab-release-cli' release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties