Added jobs to create and delete the ephemeral build machines.
This commit is contained in:
parent
dfea276ac4
commit
b28330135a
@ -25,10 +25,23 @@ test_amd64:
|
|||||||
- earthly --ci +unit-tests-linux-amd64
|
- earthly --ci +unit-tests-linux-amd64
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
|
create_build_machines:
|
||||||
|
stage: build_packages
|
||||||
|
only:
|
||||||
|
- stable
|
||||||
|
tags:
|
||||||
|
- build-orchestration
|
||||||
|
script:
|
||||||
|
- /home/gitlab-runner/build-machine-ctl.sh create amd64-deb
|
||||||
|
- /home/gitlab-runner/build-machine-ctl.sh create arm64-deb
|
||||||
|
- /home/gitlab-runner/build-machine-ctl.sh create amd64-rpm
|
||||||
|
|
||||||
package_amd64_deb:
|
package_amd64_deb:
|
||||||
stage: build_packages
|
stage: build_packages
|
||||||
only:
|
only:
|
||||||
- stable
|
- stable
|
||||||
|
needs:
|
||||||
|
- create_build_machines
|
||||||
tags:
|
tags:
|
||||||
- build-amd64-deb
|
- build-amd64-deb
|
||||||
script:
|
script:
|
||||||
@ -40,6 +53,8 @@ package_arm64_deb:
|
|||||||
stage: build_packages
|
stage: build_packages
|
||||||
only:
|
only:
|
||||||
- stable
|
- stable
|
||||||
|
needs:
|
||||||
|
- create_build_machines
|
||||||
tags:
|
tags:
|
||||||
- build-arm64-deb
|
- build-arm64-deb
|
||||||
script:
|
script:
|
||||||
@ -51,6 +66,8 @@ package_amd64_rpm:
|
|||||||
stage: build_packages
|
stage: build_packages
|
||||||
only:
|
only:
|
||||||
- stable
|
- stable
|
||||||
|
needs:
|
||||||
|
- create_build_machines
|
||||||
tags:
|
tags:
|
||||||
- build-amd64-rpm
|
- build-amd64-rpm
|
||||||
script:
|
script:
|
||||||
@ -78,4 +95,13 @@ deploy_repos:
|
|||||||
script:
|
script:
|
||||||
- /home/gitlab-runner/deploy-repo.sh
|
- /home/gitlab-runner/deploy-repo.sh
|
||||||
|
|
||||||
#Note so merge works
|
delete_build_machines:
|
||||||
|
stage: distribute
|
||||||
|
only:
|
||||||
|
- stable
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user