1
0
intel-media-ffmpeg/.gitlab-ci.yml
James Ketrenos 2861b457ac Switch from 'git clean -fd' to 'git clean -fdx' to remove untracked files
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2020-01-29 10:52:40 -08:00

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