This commit is contained in:
2025-09-12 12:14:54 +02:00
parent 281f11b881
commit 144cd69235

View File

@@ -13,11 +13,11 @@
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # ... on default (master/main) branch # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # ... on default (master/main) branch
stages: stages:
- build-image - build-image
- test - test
variables: variables:
# Fetch submodules # Fetch submodules
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
# Only fetch the latest commit (shallow clone, faster) # Only fetch the latest commit (shallow clone, faster)
@@ -26,7 +26,7 @@ variables:
# Builds the image and pushes it to the registry # Builds the image and pushes it to the registry
# This image contains all the tooling necessary to run the compilation tools # This image contains all the tooling necessary to run the compilation tools
build-image: build-image:
stage: build-image stage: build-image
# Run image build only if packages changed # Run image build only if packages changed
only: only:
@@ -55,8 +55,8 @@ build-image:
. .
- docker push --all-tags $CI_REGISTRY_IMAGE # Push the image to the registry - docker push --all-tags $CI_REGISTRY_IMAGE # Push the image to the registry
# Try to compile the code inside the image to make sure it works (run docker container) # Try to compile the code inside the image to make sure it works (run docker container)
build-test-us10: build-test-us10:
stage: test stage: test
image: image:
name: $CI_REGISTRY_IMAGE:latest name: $CI_REGISTRY_IMAGE:latest