From 2d30a93e9eb9be6938c4cbcc68ab346fb2e744d3 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Wed, 28 Feb 2024 20:36:16 +0100 Subject: [PATCH] feat: Try earthly satellite --- images/.utils/gitlab-ci.yaml | 48 ++++++------------------------------ 1 file changed, 7 insertions(+), 41 deletions(-) diff --git a/images/.utils/gitlab-ci.yaml b/images/.utils/gitlab-ci.yaml index a4943967b..5c0487ed4 100644 --- a/images/.utils/gitlab-ci.yaml +++ b/images/.utils/gitlab-ci.yaml @@ -1,44 +1,10 @@ -include: - - local: 'images/.utils/gitlab-earthly.yaml' - container-build: stage: build - extends: .earthly - parallel: - matrix: - - IMAGE: - - dovecot - - postfix - - koolbox - - synadm - - query-exposer - - findmydevice-server - - opentf - - cowsay - - spilo + image: earthly/earthly:v0.8.3 + variables: + FORCE_COLOR: 1 + EARTHLY_EXEC_CMD: "/bin/sh" script: - - cd images/${IMAGE} - - | - if [ -n "$CI_OCI_CACHE" ]; then - export ARGS="${ARGS} --remote-cache=$CI_OCI_CACHE" - fi - - | - if [ $CI_COMMIT_BRANCH = $CI_DEFAULT_BRANCH ]; then - export BUILD_ARGS="${BUILD_ARGS} --latest=true" - else - export BUILD_ARGS="${BUILD_ARGS} --tag=$CI_COMMIT_REF_SLUG --latest=false" - fi - - earthly --ci --use-inline-cache --save-inline-cache --allow-privileged --push ${ARGS} +container --registry=quay.io/shivering-isles/${IMAGE} ${BUILD_ARGS} - rules: - - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' - changes: - - images/${IMAGE}/.release - - if: '$FORCE_BUILD_IMAGE == $IMAGE' - - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' - changes: - paths: - - images/${IMAGE}/**/* - - images/.utils/* - - images/mirror/* - - images/tools/* - compare_to: main + - earthly --org earthly-5846 --sat sat01 --ci --push -P +images + tags: + - kubernetes \ No newline at end of file -- GitLab