kl.jk,hmdghn
This commit is contained in:
@@ -1,27 +1,11 @@
|
|||||||
# This CI will run:
|
name: Test1Deploy
|
||||||
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
|
|
||||||
|
|
||||||
variables:
|
on:
|
||||||
# Fetch submodules
|
workflow_call:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
workflow_dispatch:
|
||||||
# Only fetch the latest commit (shallow clone, faster)
|
|
||||||
GIT_SUBMODULE_DEPTH: 1
|
|
||||||
GIT_DEPTH: 1
|
|
||||||
|
|
||||||
stages:
|
jobs:
|
||||||
- build-image
|
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:
|
|
||||||
stage: build-image
|
stage: build-image
|
||||||
# Run image build only if packages changed
|
# Run image build only if packages changed
|
||||||
only:
|
only:
|
||||||
@@ -50,8 +34,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
|
||||||
@@ -73,8 +57,8 @@ build-test-us10:
|
|||||||
- echo "Expected SHA1 - $BASEROM_US10_SHA1"
|
- 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
|
- 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)
|
# Try to compile the code inside the image to make sure it works (run docker container)
|
||||||
build-test-pal:
|
build-test-pal:
|
||||||
stage: test
|
stage: test
|
||||||
image:
|
image:
|
||||||
name: $CI_REGISTRY_IMAGE:latest
|
name: $CI_REGISTRY_IMAGE:latest
|
||||||
|
Reference in New Issue
Block a user