55 lines
954 B
YAML
55 lines
954 B
YAML
stages:
|
|
- build
|
|
- test
|
|
- publish
|
|
|
|
# Required Input From Trigger
|
|
# OS_DISTRO: ex. ubuntu
|
|
# OS_RELEASE: ex. eoan
|
|
# PACKAGE_STREAM: ex. eoan
|
|
# BUILD: Agama Build number
|
|
# BRANCH: Agama CI branch (releases_*, master, embargo)
|
|
|
|
variables:
|
|
ci_enabled: "true"
|
|
CONTAINER: "intel-media-ffmpeg"
|
|
TARGET_TAG: "${OS_DISTRO}-${PACKAGE_STREAM}"
|
|
TAG: "${CI_PIPELINE_IID}-${CI_COMMIT_REF_NAME}-${OS_DISTRO}-${PACKAGE_STREAM}"
|
|
|
|
build_image:
|
|
before_script:
|
|
- git clean -fdx
|
|
stage: "build"
|
|
script:
|
|
- ./scripts/build-dockerfile.sh
|
|
- ./scripts/build-image.sh --no-cache
|
|
- ./scripts/push-image.sh
|
|
tags:
|
|
- builder
|
|
- ubuntu
|
|
only:
|
|
- triggers
|
|
|
|
test_image:
|
|
before_script:
|
|
- git clean -fdx
|
|
stage: "test"
|
|
script:
|
|
- ./scripts/test-image.sh
|
|
tags:
|
|
- gen9
|
|
only:
|
|
- triggers
|
|
|
|
publish_image:
|
|
before_script:
|
|
- git clean -fdx
|
|
stage: "publish"
|
|
script:
|
|
- ./scripts/promote-image.sh
|
|
tags:
|
|
- builder
|
|
- ubuntu
|
|
only:
|
|
- triggers
|