From 1227579048a4652845b660dfea931b9b774399db Mon Sep 17 00:00:00 2001 From: TC Date: Tue, 1 Aug 2023 03:25:58 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a61ba4de..4a90a1f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,9 +52,7 @@ delete_test_machine: release_job: stage: release - image: registry.gitlab.com/gitlab-org/release-cli:latest - tags: - - build-orchestration + image: registry.gitlab.com/gitlab-org/release-cli:latest script: - echo "running release_job" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties @@ -86,6 +84,15 @@ package_amd64_deb: - /home/gitlab-runner/scp-to-orchestrator.sh rules: - if: '$CI_COMMIT_TAG =~ /v\d.+/' + +delete_amd64_deb_build_machine: + stage: build_packages + needs: + - package_amd64_deb + tags: + - build-orchestration + script: + - /home/gitlab-runner/build-machine-ctl.sh delete amd64-deb package_arm64_deb: stage: build_packages @@ -100,6 +107,15 @@ package_arm64_deb: rules: - if: '$CI_COMMIT_TAG =~ /v\d.+/' +delete_arm64_deb_build_machine: + stage: build_packages + needs: + - package_arm64_deb + tags: + - build-orchestration + script: + - /home/gitlab-runner/build-machine-ctl.sh delete arm64-deb + package_amd64_rpm: stage: build_packages needs: @@ -113,6 +129,15 @@ package_amd64_rpm: rules: - if: '$CI_COMMIT_TAG =~ /v\d.+/' +delete_amd64_rpm_build_machine: + stage: build_packages + needs: + - package_amd64_rpm + tags: + - build-orchestration + script: + - /home/gitlab-runner/build-machine-ctl.sh delete amd64-rpm + build_repositories: stage: distribute tags: @@ -131,15 +156,4 @@ deploy_repos: script: - /home/gitlab-runner/deploy-repo.sh rules: - - if: '$CCI_COMMIT_TAG =~ /v\d.+/' - -delete_build_machines: - stage: distribute - tags: - - build-orchestration - script: - - /home/gitlab-runner/build-machine-ctl.sh delete amd64-deb - - /home/gitlab-runner/build-machine-ctl.sh delete arm64-deb - - /home/gitlab-runner/build-machine-ctl.sh delete amd64-rpm - rules: - - if: '$CI_COMMIT_TAG =~ /v\d.+/' \ No newline at end of file + - if: '$CCI_COMMIT_TAG =~ /v\d.+/' \ No newline at end of file