Merge branch 'test-caching' into 'main'

Test caching

See merge request veilid/veilid!36
This commit is contained in:
John Smith 2023-06-23 01:39:13 +00:00
commit de638f99e7

View File

@ -5,41 +5,27 @@ variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages: stages:
- build
- test - test
- package
- distribute - distribute
before_script: before_script:
- earthly bootstrap - earthly bootstrap
build_amd64: test_amd64:
stage: build stage: test
image: earthly/earthly:v0.6.30
only: only:
- main - main
- merge_requests - merge_requests
image: earthly/earthly:v0.6.30
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- earthly +build-linux-amd64 - earthly --ci +unit-tests-linux-amd64
when: manual when: manual
test_amd64: distribute_amd64:
stage: test stage: distribute
needs:
- job: build_amd64
only:
- main
tags:
- linux
- amd64
script:
- earthly +unit-tests-linux-amd64
package_amd64:
stage: package
needs: needs:
- job: test_amd64 - job: test_amd64
only: only:
@ -49,30 +35,4 @@ package_amd64:
- amd64 - amd64
script: script:
- earthly +package-linux-amd64 - earthly +package-linux-amd64
distribute_amd64:
stage: distribute
needs:
- job: package_amd64
only:
- main
tags:
- linux
- amd64
script:
- earthly +package-linux-amd64
- /home/gitlab-runner/distribute-packages.sh - /home/gitlab-runner/distribute-packages.sh
#earthly-arm64:
# stage: linux-arm64
# only:
# - main
# - merge_requests
# image: earthly/earthly:v0.6.30
# tags:
# - linux
# - amd64
# script:
# - earthly --ci -P +package-linux-arm64