veilid/.gitlab-ci.yml

78 lines
1.1 KiB
YAML
Raw Normal View History

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
stages:
- 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
build_amd64:
stage: build
2023-02-18 23:02:36 +00:00
only:
- main
- 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:
- earthly +build-linux-amd64
when: manual
test_amd64:
stage: test
needs:
- job: build_amd64
only:
2023-06-21 05:41:09 +00:00
- main
tags:
2023-06-21 06:01:47 +00:00
- linux
- 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-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:
# - earthly --ci -P +package-linux-arm64