From fd6147817e9e0cba3960a855ebc215fe49d40e3e Mon Sep 17 00:00:00 2001 From: TC Johnson Date: Wed, 21 Jun 2023 02:46:05 +0000 Subject: [PATCH] Update .gitlab-ci.yml file to the intermediary package distribution pipeline. --- .gitlab-ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 168df517..615bf8b0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,14 +5,16 @@ variables: GIT_SUBMODULE_STRATEGY: normal stages: - - linux-amd64 -# - linux-arm64 + - build + - test + - package + - distribute before_script: - earthly bootstrap -earthly-amd64: - stage: linux-amd64 +build_amd64: + stage: build only: - main - merge_requests @@ -21,8 +23,46 @@ earthly-amd64: - linux - amd64 script: - - echo "disabled for now" - # - earthly --ci -P +package-linux-amd64 + - earthly +build-linux-amd64 + when: manual + +test_amd64: + stage: test + needs: + - job: build_amd64 + only: + - TC/CICD-hacking + tags: + - main + - amd64 + script: + - earthly +unit-tests-linux-amd64 + +package_amd64: + stage: package + needs: + - job: test_amd64 + only: + - main + tags: + - linux + - amd64 + script: + - earthly +package-linux-amd64 + + +distribute_amd64: + stage: distribute + needs: + - job: package_amd64 + only: + - main + tags: + - linux + - amd64 + script: + - /home/gitlab-runner/distribute-packages.sh + #earthly-arm64: # stage: linux-arm64 @@ -34,5 +74,4 @@ earthly-amd64: # - linux # - amd64 # script: -# - echo "disabled for now" -# # - earthly --ci -P +package-linux-arm64 +# - earthly --ci -P +package-linux-arm64