stages: - build - test - publish # Required Input From Trigger # # BUILD : Build tag. For example: agama-ci-master-405 or N/A # OS_DISTRO : OS distribution. For example: rhel, sles, ubuntu # OS_RELEASE : OS release. For example: 8.2, 15sp2, focal # PACKAGE_REPOSITORY : Repository base URL. For example https://osgc.jf.intel.com/internal # PACKAGE_STREAM : Repository suffix. For example embargo-ats-untested # # Optional input from Trigger # # PLATFORM : Platform name for runners. Default: empty (first available) # variables: ci_enabled: "true" CONTAINER: "intel-media-ffmpeg" TAG: "${CI_PIPELINE_IID}-${CI_COMMIT_REF_NAME}-${OS_DISTRO}-${PACKAGE_STREAM}" build_image: stage: "build" script: - if (( DEBUG )); then export; fi - ./scripts/build-dockerfile.sh - ./scripts/build-image.sh --no-cache - ./scripts/push-image.sh tags: - builder only: - triggers test_image: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == ""' tags: - graphics test_image_gen9: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == "gen9"' tags: - graphics - gen9 test_image_gen11: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == "gen11"' tags: - graphics - gen11 test_image_gen12: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == "gen12"' tags: - graphics - gen12 test_image_dg1: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == "dg1"' tags: - graphics - dg1 test_image_dg2: stage: "test" script: - if (( DEBUG )); then export; fi - ./scripts/test-image.sh rules: - if: '$CI_PIPELINE_SOURCE != "trigger" && $CI_PIPELINE_SOURCE != "pipeline"' when: never - if: '$PLATFORM == "dg2"' tags: - graphics - dg2 publish_image: stage: "publish" script: - if (( DEBUG )); then export; fi - ./scripts/promote-image.sh tags: - builder only: - triggers