1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 19:50:54 +00:00
trezor-firmware/ci/environment.yml

17 lines
654 B
YAML
Raw Normal View History

environment:
stage: environment
image: docker
when: manual
variables:
GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules
2019-08-02 11:00:54 +00:00
CONTAINER_NAME: "$CI_REGISTRY/satoshilabs/trezor/trezor-firmware/environment"
services:
- docker:dind
before_script:
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
script:
- docker pull $CONTAINER_NAME:latest || true
2019-08-27 14:05:22 +00:00
- docker build --cache-from $CONTAINER_NAME:latest --tag $CONTAINER_NAME:$CI_COMMIT_SHA --tag $CONTAINER_NAME:latest --build-arg FULLDEPS_TESTING=1 ci/
- docker push $CONTAINER_NAME:$CI_COMMIT_SHA
- docker push $CONTAINER_NAME:latest