1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 00:08:10 +00:00

ci: run environment only when manually triggered

This commit is contained in:
Tomas Susanka 2019-08-08 13:59:32 +02:00
parent db2ce2055d
commit 9f4f704856

View File

@ -1,6 +1,7 @@
environment:
stage: environment
image: docker
when: manual
variables:
GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules
CONTAINER_NAME: "$CI_REGISTRY/satoshilabs/trezor/trezor-firmware/environment"
@ -8,9 +9,6 @@ environment:
- docker:dind
before_script:
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
only:
changes:
- ci/*
script:
- docker pull $CONTAINER_NAME:latest || true
- docker build --cache-from $CONTAINER_NAME:latest --tag $CONTAINER_NAME:$CI_COMMIT_SHA --tag $CONTAINER_NAME:latest ci/