2020-05-11 00:24:33 +02:00
|
|
|
image: docker:stable
|
|
|
|
|
|
|
|
variables:
|
|
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker:19.03.8-dind
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- docker info
|
2019-11-08 21:01:11 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2021-01-07 21:02:55 +01:00
|
|
|
- upload-release
|
2019-11-08 21:01:11 +01:00
|
|
|
|
2021-01-07 21:30:09 +01:00
|
|
|
build-master:
|
2019-11-08 21:01:11 +01:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2020-05-11 00:24:33 +02:00
|
|
|
- apk update && apk add make > /dev/null
|
2019-11-08 21:01:11 +01:00
|
|
|
script:
|
2020-05-11 00:24:33 +02:00
|
|
|
- make build-docker
|
2021-01-07 21:02:55 +01:00
|
|
|
- mv build/docker/bemanitools.zip bemanitools.zip
|
2019-11-08 21:01:11 +01:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
|
|
|
|
paths:
|
2021-01-07 21:02:55 +01:00
|
|
|
- bemanitools.zip
|
2019-11-08 21:01:11 +01:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
|
2021-01-07 21:30:09 +01:00
|
|
|
build-tags:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- apk update && apk add make > /dev/null
|
|
|
|
script:
|
|
|
|
- make build-docker
|
|
|
|
- mv build/docker/bemanitools.zip bemanitools.zip
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
|
|
|
|
paths:
|
|
|
|
- bemanitools.zip
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
|
2021-01-07 21:02:55 +01:00
|
|
|
upload-release:
|
|
|
|
stage: upload-release
|
2019-11-08 21:01:11 +01:00
|
|
|
dependencies:
|
2021-01-07 21:30:09 +01:00
|
|
|
- build-tags
|
2019-11-08 22:27:54 +01:00
|
|
|
before_script:
|
2020-05-11 00:24:33 +02:00
|
|
|
- apk update && apk add curl > /dev/null
|
2019-11-08 22:27:54 +01:00
|
|
|
script:
|
2021-01-07 21:02:55 +01:00
|
|
|
- echo "Uploading ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}..."
|
2021-01-07 21:30:09 +01:00
|
|
|
- curl --silent --show-error -F "key=${CI_UPLOAD_KEY}" -F "filename=${CI_PROJECT_NAME}-v${CI_COMMIT_TAG}.zip" -F "file=@./bemanitools.zip" ${CI_UPLOAD_URL}
|
2019-11-08 22:27:54 +01:00
|
|
|
only:
|
2021-01-07 21:30:09 +01:00
|
|
|
- tags
|