From 5e95f04411d4fc4251ada103bfd44dc9a3b605d5 Mon Sep 17 00:00:00 2001 From: Adam Shamblin Date: Mon, 20 Feb 2023 12:14:05 -0700 Subject: [PATCH] Add merge_requests as build target, split into two architectures --- .gitlab-ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a33fdf6..0f030d97 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,17 +4,33 @@ variables: EARTHLY_EXEC_CMD: "/bin/sh" GIT_SUBMODULE_STRATEGY: normal +stages: + - linux-amd64 + - linux-arm64 before_script: - earthly bootstrap -earthly: - stage: build +earthly-amd64: + stage: linux-amd64 only: - main + - merge_requests image: earthly/earthly:v0.6.30 tags: - linux - amd64 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