2020-05-23 08:02:39 +00:00
|
|
|
# Publishes veloren-server-cli to the gitlab container registry
|
|
|
|
# https://gitlab.com/veloren/veloren/container_registry
|
2020-06-12 11:09:56 +00:00
|
|
|
.publish:
|
2020-05-14 16:12:22 +00:00
|
|
|
stage: publish
|
2020-06-12 11:09:56 +00:00
|
|
|
tags:
|
|
|
|
- veloren-docker
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
when: always
|
2020-06-17 08:41:05 +00:00
|
|
|
- when: never
|
2020-06-12 11:09:56 +00:00
|
|
|
|
|
|
|
docker:
|
|
|
|
extends: .publish
|
2020-05-14 16:12:22 +00:00
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
dependencies:
|
|
|
|
- linux
|
|
|
|
before_script:
|
|
|
|
- ls "$CI_PROJECT_DIR/server-cli/"
|
|
|
|
script:
|
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-server"
|
2020-06-11 13:24:07 +00:00
|
|
|
|
|
|
|
pages:
|
2020-06-12 11:09:56 +00:00
|
|
|
extends: .publish
|
2020-06-11 13:24:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-06-19 07:39:53 +00:00
|
|
|
- public
|
2020-06-11 13:24:07 +00:00
|
|
|
script:
|
|
|
|
- rm -rf public
|
|
|
|
- mkdir -p public
|
2020-06-19 07:39:53 +00:00
|
|
|
- cargo doc --no-deps --document-private-items
|
|
|
|
- mv target/doc/* public
|