From: Don Zickus <[email protected]>

CI: rawhide_release: switch to using script to push

Currently the gitlab-ci.yml script pushes the gitlab changes.  Switch to
using the script to make testing and debugging easier.

No functional changes, but script pushing is minimally tested.

Signed-off-by: Don Zickus <[email protected]>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -264,17 +264,7 @@ rawhide_release:
   script:
     - git checkout --track origin/ark-latest && git describe
     - git checkout --track origin/ark-infra && git describe
-    - redhat/scripts/ci/ark-create-release.sh || exit_code=$?
-    - if [ $exit_code -eq 3 ]; then echo "Tag exists, halting" && exit 0; fi;
-    - if [ $exit_code -ne 0 ]; then echo "Unable to create release tag" && 
exit 1; fi;
-    - git push gitlab os-build
-    # ark-create-release.sh creates a tag for ark-latest to be pushed.
-    # Make sure the ark-latest branch is checked out.
-    - git checkout ark-latest
-    - git push gitlab "$(git describe)"
-    - git push gitlab ark/*
-    - git push -f gitlab ark-latest
-    - git push -f gitlab ark-infra
+    - DIST_PUSH=1 redhat/scripts/ci/ark-create-release.sh
   retry: 2
   rules:
     - *only-os-build-schedule

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2519
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to