2021-11-26 14:54:38 +00:00
|
|
|
variables:
|
2022-11-22 22:16:53 +00:00
|
|
|
NO_DOCKER: 1
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
EARTHLY_EXEC_CMD: "/bin/sh"
|
2022-11-27 05:18:08 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2021-11-26 14:54:38 +00:00
|
|
|
|
2023-02-20 19:14:05 +00:00
|
|
|
stages:
|
2023-06-21 02:46:05 +00:00
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- package
|
|
|
|
- distribute
|
2021-11-24 21:49:13 +00:00
|
|
|
|
2022-11-22 22:16:53 +00:00
|
|
|
before_script:
|
|
|
|
- earthly bootstrap
|
2021-12-05 20:22:28 +00:00
|
|
|
|
2023-06-21 02:46:05 +00:00
|
|
|
build_amd64:
|
|
|
|
stage: build
|
2023-02-18 23:02:36 +00:00
|
|
|
only:
|
|
|
|
- main
|
2023-02-20 19:14:05 +00:00
|
|
|
- merge_requests
|
2022-11-22 22:16:53 +00:00
|
|
|
image: earthly/earthly:v0.6.30
|
2021-12-05 20:22:28 +00:00
|
|
|
tags:
|
|
|
|
- linux
|
|
|
|
- amd64
|
2021-11-24 21:49:13 +00:00
|
|
|
script:
|
2023-06-21 02:46:05 +00:00
|
|
|
- earthly +build-linux-amd64
|
|
|
|
when: manual
|
|
|
|
|
|
|
|
test_amd64:
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- job: build_amd64
|
|
|
|
only:
|
2023-06-21 05:41:09 +00:00
|
|
|
- main
|
2023-06-21 02:46:05 +00:00
|
|
|
tags:
|
2023-06-21 06:01:47 +00:00
|
|
|
- linux
|
2023-06-21 02:46:05 +00:00
|
|
|
- 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
|
|
|
|
|
2023-02-20 19:14:05 +00:00
|
|
|
|
2023-06-19 02:58:17 +00:00
|
|
|
#earthly-arm64:
|
|
|
|
# stage: linux-arm64
|
|
|
|
# only:
|
|
|
|
# - main
|
|
|
|
# - merge_requests
|
|
|
|
# image: earthly/earthly:v0.6.30
|
|
|
|
# tags:
|
|
|
|
# - linux
|
|
|
|
# - amd64
|
|
|
|
# script:
|
2023-06-21 02:46:05 +00:00
|
|
|
# - earthly --ci -P +package-linux-arm64
|