From 1a473840ce6055a0a6b647d8f282c666f9f291b3 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 16 May 2024 00:48:56 -0700 Subject: [PATCH] ignore gitlab-ci --- .gitlab-ci.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index b4e9b85..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,24 +0,0 @@ -variables: - DOWNSTREAM_BRANCH: "rhel-10.0-beta" - -default: - image: images.paas.redhat.com/osci/compose-utils:latest - -push-to-rhel: - tags: - - docker - rules: - - if: $CI_PROJECT_ID == "24620603" && $CI_MERGE_REQUEST_EVENT_TYPE == "merge_train" && $CI_COMMIT_BRANCH == "centos-10-stream" - script: - - echo "Trying to sync to new rhel" - - git remote add rhel_origin https://@gitlab.cee.redhat.com/rhel/release-engineering/pungi-redhat.git - - git fetch rhel_origin $DOWNSTREAM_BRANCH - - git fetch origin centos-10-stream - - ref=$(git rev-parse origin/centos-10-stream) - - git checkout rhel_origin/$DOWNSTREAM_BRANCH; git checkout -b update-$ref rhel_origin/$DOWNSTREAM_BRANCH - - "[[ $CI_COMMIT_SHA != $(git rev-parse origin/centos-10-stream) ]] && echo \"Pipeline doesn't have the latest revision of centos-10-stream branch, skipping\" && exit 1" - - merge_diff=`git merge-tree $(git merge-base rhel_origin/$DOWNSTREAM_BRANCH origin/centos-10-stream) rhel_origin/$DOWNSTREAM_BRANCH origin/centos-10-stream` - - echo "$merge_diff" - - git merge -m "Sync from centos - HEAD at $CI_COMMIT_MESSAGE" origin/centos-10-stream - - git push "https://gitlab-sync-token:$ACCESS_TOKEN_PUNGI@gitlab.cee.redhat.com/rhel/release-engineering/pungi-redhat.git" update-$ref -o merge_request.create -o merge_request.target=$DOWNSTREAM_BRANCH -o merge_request.merge_when_pipeline_succeeds - - while true; do if [ "$(curl -s https://gitlab.cee.redhat.com/api/v4/projects/83087/pipelines?sha=$ref | jq -r '.[0].status')" == "passed" ]; then echo "Downstream pipeline passed" && break; fi; done