Add merge_requests as build target, split into two architectures

This commit is contained in:
Adam Shamblin 2023-02-20 12:14:05 -07:00
parent 42ca47bb66
commit 5e95f04411
No known key found for this signature in database
GPG Key ID: 22E0BC8E6B4D8C8E

View File

@ -4,17 +4,33 @@ variables:
EARTHLY_EXEC_CMD: "/bin/sh" EARTHLY_EXEC_CMD: "/bin/sh"
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages:
- linux-amd64
- linux-arm64
before_script: before_script:
- earthly bootstrap - earthly bootstrap
earthly: earthly-amd64:
stage: build stage: linux-amd64
only: only:
- main - main
- merge_requests
image: earthly/earthly:v0.6.30 image: earthly/earthly:v0.6.30
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- earthly --ci -P +package-linux - earthly --ci -P +package-linux-amd64
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