mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
18 lines
681 B
YAML
18 lines
681 B
YAML
# Publishes veloren-server-cli to the gitlab container registry
|
|
# https://gitlab.com/veloren/veloren/container_registry
|
|
docker:
|
|
stage: publish
|
|
extends: .release
|
|
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"
|