Browse Source

Merge pull request #102 from mzedel/QA-75-production-gitlab-pipeline

added initial gitlab pipeline
1.2.x
Manuel Zedel 6 years ago
committed by GitHub
parent
commit
a8beaba758
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      .gitlab-ci.yml

32
.gitlab-ci.yml

@ -0,0 +1,32 @@
image: docker:git
variables:
DOCKER_REPOSITORY: mendersoftware/mender-convert
MENDER_CLIENT_VERSION: '2.0.0'
stages:
- test
- build
test:
stage: test
script:
- apk add --no-cache bash perl-utils
- 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 $DOCKER_REPOSITORY:pr --build-arg mender_client_version=${MENDER_CLIENT_VERSION} .
- docker save $DOCKER_REPOSITORY:pr > image.tar
artifacts:
expire_in: 2w
paths:
- image.tar
Loading…
Cancel
Save