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