Update .gitlab-ci.yml file
This commit is contained in:
parent
e36434fa36
commit
3c68899b75
@ -50,6 +50,17 @@ delete_test_machine:
|
|||||||
script:
|
script:
|
||||||
- /home/gitlab-runner/build-machine-ctl.sh delete amd64-deb
|
- /home/gitlab-runner/build-machine-ctl.sh delete amd64-deb
|
||||||
|
|
||||||
|
release_job:
|
||||||
|
stage: release
|
||||||
|
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
|
||||||
|
tag_name: '$CI_COMMIT_TAG'
|
||||||
|
description: '$CI_COMMIT_TAG'
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
create_build_machines:
|
create_build_machines:
|
||||||
stage: build_packages
|
stage: build_packages
|
||||||
tags:
|
tags:
|
||||||
@ -59,7 +70,7 @@ create_build_machines:
|
|||||||
- /home/gitlab-runner/build-machine-ctl.sh create arm64-deb
|
- /home/gitlab-runner/build-machine-ctl.sh create arm64-deb
|
||||||
- /home/gitlab-runner/build-machine-ctl.sh create amd64-rpm
|
- /home/gitlab-runner/build-machine-ctl.sh create amd64-rpm
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
package_amd64_deb:
|
package_amd64_deb:
|
||||||
stage: build_packages
|
stage: build_packages
|
||||||
@ -72,7 +83,7 @@ package_amd64_deb:
|
|||||||
- earthly +package-linux-amd64-deb
|
- earthly +package-linux-amd64-deb
|
||||||
- /home/gitlab-runner/scp-to-orchestrator.sh
|
- /home/gitlab-runner/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
package_arm64_deb:
|
package_arm64_deb:
|
||||||
stage: build_packages
|
stage: build_packages
|
||||||
@ -85,7 +96,7 @@ package_arm64_deb:
|
|||||||
- earthly +package-linux-arm64-deb
|
- earthly +package-linux-arm64-deb
|
||||||
- /home/gitlab-runner/scp-to-orchestrator.sh
|
- /home/gitlab-runner/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
package_amd64_rpm:
|
package_amd64_rpm:
|
||||||
stage: build_packages
|
stage: build_packages
|
||||||
@ -98,18 +109,7 @@ package_amd64_rpm:
|
|||||||
- earthly +package-linux-amd64-rpm
|
- earthly +package-linux-amd64-rpm
|
||||||
- /home/gitlab-runner/scp-to-orchestrator.sh
|
- /home/gitlab-runner/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
release_job:
|
|
||||||
stage: release
|
|
||||||
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
|
|
||||||
tag_name: '$CI_COMMIT_TAG'
|
|
||||||
description: '$CI_COMMIT_TAG'
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
|
||||||
|
|
||||||
build_repositories:
|
build_repositories:
|
||||||
stage: distribute
|
stage: distribute
|
||||||
@ -118,7 +118,7 @@ build_repositories:
|
|||||||
script:
|
script:
|
||||||
- /home/gitlab-runner/distribute-packages.sh
|
- /home/gitlab-runner/distribute-packages.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
deploy_repos:
|
deploy_repos:
|
||||||
stage: distribute
|
stage: distribute
|
||||||
@ -129,7 +129,7 @@ deploy_repos:
|
|||||||
script:
|
script:
|
||||||
- /home/gitlab-runner/deploy-repo.sh
|
- /home/gitlab-runner/deploy-repo.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CCI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
delete_build_machines:
|
delete_build_machines:
|
||||||
stage: distribute
|
stage: distribute
|
||||||
@ -140,4 +140,4 @@ delete_build_machines:
|
|||||||
- /home/gitlab-runner/build-machine-ctl.sh delete arm64-deb
|
- /home/gitlab-runner/build-machine-ctl.sh delete arm64-deb
|
||||||
- /home/gitlab-runner/build-machine-ctl.sh delete amd64-rpm
|
- /home/gitlab-runner/build-machine-ctl.sh delete amd64-rpm
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
Loading…
Reference in New Issue
Block a user