Skip to content
Snippets Groups Projects
Verified Commit 192b6218 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(gitlab-ci): Separate earthly to allow outside imports

parent 3f54a90f
No related branches found
No related tags found
No related merge requests found
Pipeline #18108 canceled
.container-matrix: include:
- local: 'images/.utils/gitlab-earthly.yaml'
container-build:
stage: build
extends: .earthly
parallel: parallel:
matrix: matrix:
- IMAGE: - IMAGE:
...@@ -8,26 +13,6 @@ ...@@ -8,26 +13,6 @@
- synadm - synadm
- query-exposer - query-exposer
- findmydevice-server - findmydevice-server
earthly:
stage: build
image: docker.io/earthly/earthly:v0.7.17
extends: .container-matrix
variables:
DOCKER_HOST: tcp://docker:2375
FORCE_COLOR: 1
EARTHLY_EXEC_CMD: "/bin/sh"
EARTHLY_SERVER_ADDRESS: localhost
EARTHLY_GRPC_ADDRESS: localhost
services:
- docker:dind
before_script:
- docker run --privileged --rm tonistiigi/binfmt --install all
- earthly config global.disable_analytics true
- earthly config global.disable_log_sharing true
- earthly account logout
- earthly bootstrap
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- cd images/${IMAGE} - cd images/${IMAGE}
- | - |
...@@ -41,8 +26,6 @@ earthly: ...@@ -41,8 +26,6 @@ earthly:
export BUILD_ARGS="${BUILD_ARGS} --tag=$CI_COMMIT_REF_SLUG --latest=false" export BUILD_ARGS="${BUILD_ARGS} --tag=$CI_COMMIT_REF_SLUG --latest=false"
fi fi
- earthly --ci --allow-privileged --push ${ARGS} +container --registry=quay.io/shivering-isles/${IMAGE} ${BUILD_ARGS} - earthly --ci --allow-privileged --push ${ARGS} +container --registry=quay.io/shivering-isles/${IMAGE} ${BUILD_ARGS}
tags:
- privileged
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
changes: changes:
......
.earthly:
image: docker.io/earthly/earthly:v0.7.17
variables:
DOCKER_HOST: tcp://docker:2375
FORCE_COLOR: 1
EARTHLY_EXEC_CMD: "/bin/sh"
EARTHLY_SERVER_ADDRESS: localhost
EARTHLY_GRPC_ADDRESS: localhost
services:
- docker:dind
before_script:
- docker run --privileged --rm tonistiigi/binfmt --install all
- earthly config global.disable_analytics true
- earthly config global.disable_log_sharing true
- earthly account logout
- earthly bootstrap
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
tags:
- privileged
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment