1
0
intel-media-ffmpeg/.gitlab-ci.yml
James Ketrenos 363f40de52 Refactored scripts/* and .gitlab-ci.yml
Fix #6: Define TAG in .gitlab-ci.yml and update scripts to defer to it.

renamed:    scripts/push-test-image.sh -> scripts/push-image.sh
renamed:    scripts/test-tag.sh -> scripts/test-image.sh

Refactored some of the scripts/* so they are generic and not tied to CI usages.

Added error checking and output to push-rolling-image.sh and remove-tag.sh

Added scripts/trigger.sh to auto-trigger builds.

Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2019-12-17 21:04:52 -08:00

50 lines
973 B
YAML

stages:
- build-devel
- test-devel
- publish-rolling
# Required Input From Trigger
# OS_DISTRO: ex. ubuntu
# OS_RELEASE: ex. eoan
# PACKAGE_STREAM: ex. eoan
variables:
ci_enabled: "true"
PACKAGE_REPOSITORY: "https://repositories.intel.com/graphics"
REGISTRY_URL: "amr-registry.caas.intel.com/vtt-osgc/solutions"
CONTAINER: "intel-media-ffmpeg"
TARGET_TAG: "${OS_DISTRO}-${PACKAGE_STREAM}"
TAG: "${CI_PIPELINE_IID}-${CI_COMMIT_REF_NAME}-${OS_DISTRO}-${PACKAGE_STREAM}"
build_devel_image:
stage: "build-devel"
script:
- ./scripts/build-dockerfile.sh
- ./scripts/build-image.sh
- ./scripts/push-image.sh
tags:
- builder
- ubuntu
only:
- triggers
test_devel_image:
stage: "test-devel"
script:
- ./scripts/test-image.sh
tags:
- gen9
only:
- triggers
publish_rolling_image:
stage: "publish-rolling"
script:
- ./scripts/push-rolling-image.sh
- ./scripts/remove-tag.sh
tags:
- builder
- ubuntu
only:
- triggers