From abfbda172ddcc6de0c2447873cc2be43bdcc878f Mon Sep 17 00:00:00 2001 From: Manuel Zedel Date: Mon, 1 Jul 2019 14:46:15 +0200 Subject: [PATCH] added initial gitlab pipeline Changelog: None Signed-off-by: Manuel Zedel --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f5bdc25 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +image: docker:git + +variables: + DOCKER_REPOSITORY: mendersoftware/mender-convert + IMAGE_NAME: mender-convert + MENDER_CLIENT_VERSION: '2.0.0' + +stages: + - test + - build + +test: + stage: test + script: + - apk add --no-cache bash + - git clone git://github.com/mendersoftware/mendertesting + # Check commit compliance. + - mendertesting/check_commits.sh + # Check licenses + - mendertesting/check_license.sh + +build: + stage: build + services: + - docker:dind + script: + - docker build -t ${IMAGE_NAME} --build-arg mender_client_version=${MENDER_CLIENT_VERSION} . + - docker save $DOCKER_REPOSITORY:pr > image.tar + artifacts: + expire_in: 2w + paths: + - image.tar +