kl.jk,hmdghn

This commit is contained in:
2025-09-12 12:22:08 +02:00
parent 8834bd3955
commit 6a0e206b45

View File

@@ -1,27 +1,11 @@
# This CI will run:
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' # ... on merge requests
- if: $CI_COMMIT_TAG # ... on tags
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # ... on default (master/main) branch
name: Test1Deploy
variables:
# Fetch submodules
GIT_SUBMODULE_STRATEGY: recursive
# Only fetch the latest commit (shallow clone, faster)
GIT_SUBMODULE_DEPTH: 1
GIT_DEPTH: 1
on:
workflow_call:
workflow_dispatch:
stages:
- build-image
- test
# Builds the image and pushes it to the registry
# This image contains all the tooling necessary to run the compilation tools
build-image:
jobs:
build-image:
stage: build-image
# Run image build only if packages changed
only:
@@ -50,8 +34,8 @@ build-image:
.
- 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)
build-test-us10:
# Try to compile the code inside the image to make sure it works (run docker container)
build-test-us10:
stage: test
image:
name: $CI_REGISTRY_IMAGE:latest
@@ -73,8 +57,8 @@ build-test-us10:
- echo "Expected SHA1 - $BASEROM_US10_SHA1"
- if [ "${FILE_SHA1}" != "${BASEROM_US10_SHA1}" ]; then echo "Checksum verification failed"; exit 1; else echo "Checksum verification passed"; fi
# Try to compile the code inside the image to make sure it works (run docker container)
build-test-pal:
# Try to compile the code inside the image to make sure it works (run docker container)
build-test-pal:
stage: test
image:
name: $CI_REGISTRY_IMAGE:latest