You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
683 B
32 lines
683 B
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
|
|
|
|
|