Skip to content

Commit

Permalink
refs platform/#2862: add variable to change the image configuration f…
Browse files Browse the repository at this point in the history
…or the default image and for the docker mirror image (#255)
  • Loading branch information
Monska85 authored Dec 5, 2024
1 parent 14c60f8 commit a7f25aa
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions templates/.gitlab-ci-template.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
image: ghcr.io/sparkfabrik/spark-k8s-deployer:latest
image: ${DEFAULT_IMAGE_REGISTRY}/${DEFAULT_IMAGE_REPOSITORY}:${DEFAULT_IMAGE_TAG}

# MTU configuration: https://docs.gitlab.com/runner/executors/kubernetes/troubleshooting.html#curl-35-openssl-ssl_connect-ssl_error_syscall-in-connection-to-githubcom443
services:
- name: ghcr.io/sparkfabrik/gcp-artifact-registry-docker-proxy:latest
- name: ${DOCKER_MIRROR_IMAGE_REGISTRY}/${DOCKER_MIRROR_IMAGE_REPOSITORY}:${DOCKER_MIRROR_IMAGE_TAG}
alias: docker-mirror
command:
[
Expand All @@ -23,6 +23,18 @@ services:
"--default-network-opt=bridge=com.docker.network.driver.mtu=1460",
]
variables:
# Default image configuration.
# You can override these variables in your project's .gitlab-ci.yml file
# to change the image used for the jobs.
DEFAULT_IMAGE_REGISTRY: ghcr.io
DEFAULT_IMAGE_REPOSITORY: sparkfabrik/spark-k8s-deployer
DEFAULT_IMAGE_TAG: latest
# Docker-mirror image configuration.
# You can override these variables in your project's .gitlab-ci.yml file
# to change the image used for docker-mirror service.
DOCKER_MIRROR_IMAGE_REGISTRY: ghcr.io
DOCKER_MIRROR_IMAGE_REPOSITORY: sparkfabrik/gcp-artifact-registry-docker-proxy
DOCKER_MIRROR_IMAGE_TAG: latest
# When using dind service, we need to instruct docker to talk with
# the daemon started inside of the service. The daemon is available
# with a network connection instead of the default
Expand Down

0 comments on commit a7f25aa

Please sign in to comment.