Fix webide deploy handoff

This commit is contained in:
Alexander Bantyev 2020-05-21 19:03:15 +03:00
parent 91f31f2914
commit b522e50ce2
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -7,6 +7,7 @@ variables:
stages: stages:
- build - build
- push - push
- ide-deploy
- versioning - versioning
.docker-image: .docker-image:
@ -121,7 +122,6 @@ webide-docker:
paths: paths:
- webide.tar.gz - webide.tar.gz
webide-push: webide-push:
extends: .docker-image extends: .docker-image
dependencies: dependencies:
@ -138,6 +138,17 @@ webide-push:
- docker tag ligo-editor "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}" - docker tag ligo-editor "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
- docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}" - docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
deploy-handoff:
# Handoff deployment duties to private repo
stage: ide-deploy
variables:
IDE_DOCKER_IMAGE: "registry.gitlab.com/${CI_PROJECT_PATH}/ligo_webide"
LIGO_COMMIT_REF_NAME: "${CI_COMMIT_SHORT_SHA}"
trigger: ligolang/ligo-webide-deploy
rules:
- if: '$CI_COMMIT_REF_NAME == "dev"'
when: always
static-binary: static-binary:
extends: .nix extends: .nix
only: only: