From 75c8b0c789c6a841c2ff321f7502f27435570ed7 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 22 Jul 2023 17:07:00 +0000 Subject: [PATCH] Added ephemeral create/delete to test stage. --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 394a59a1..b5f21093 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,16 @@ stages: #before_script: # - earthly bootstrap +create_test_machine: + stage: test + only: + - main + - merge_requests + tags: + - build-orchestration + script: + - /home/gitlab-runner/build-machine-ctl.sh create amd64-deb + test_amd64: stage: test image: earthly/earthly:v0.6.30 @@ -25,6 +35,18 @@ test_amd64: - earthly --ci +unit-tests-linux-amd64 when: manual +delete_test_machine: + stage: test + only: + - main + - merge_requests + needs: + - test_amd64 + tags: + - build-orchestration + script: + - /home/gitlab-runner/build-machine-ctl.sh delete amd64-deb + create_build_machines: stage: build_packages only: