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-05-14 15:37:34 +00:00
|
|
|
docker:
|
2020-05-14 16:12:22 +00:00
|
|
|
stage: publish
|
2020-05-18 17:32:21 +00:00
|
|
|
extends: .release
|
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/"
|
|
|
|
tags:
|
|
|
|
- veloren-docker
|
|
|
|
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:
|
|
|
|
extends: .release
|
2020-06-14 18:03:26 +00:00
|
|
|
stage: publish
|
2020-06-11 13:24:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
script:
|
|
|
|
- rm -rf public
|
|
|
|
- mkdir -p public
|
|
|
|
- cargo doc --no-deps --all-features --document-private-items
|
|
|
|
- mv target/doc/* public
|