Update .gitlab-ci.yml file to the intermediary package distribution pipeline.

This commit is contained in:
TC Johnson 2023-06-21 02:46:05 +00:00
parent c903671b8b
commit fd6147817e

View File

@ -5,14 +5,16 @@ variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages: stages:
- linux-amd64 - build
# - linux-arm64 - test
- package
- distribute
before_script: before_script:
- earthly bootstrap - earthly bootstrap
earthly-amd64: build_amd64:
stage: linux-amd64 stage: build
only: only:
- main - main
- merge_requests - merge_requests
@ -21,8 +23,46 @@ earthly-amd64:
- linux - linux
- amd64 - amd64
script: script:
- echo "disabled for now" - earthly +build-linux-amd64
# - earthly --ci -P +package-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: #earthly-arm64:
# stage: linux-arm64 # stage: linux-arm64
@ -34,5 +74,4 @@ earthly-amd64:
# - linux # - linux
# - amd64 # - amd64
# script: # script:
# - echo "disabled for now" # - earthly --ci -P +package-linux-arm64
# # - earthly --ci -P +package-linux-arm64