1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

ci: run environment stage if ci folder has changes

This commit is contained in:
Tomas Susanka 2019-05-27 09:52:46 +02:00
parent acbbfe2eb9
commit bf3d20b3e8

View File

@ -8,7 +8,9 @@ environment:
- docker:dind
before_script:
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
when: manual
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/