2018-11-20 15:53:13 +00:00
|
|
|
image: docker:latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
|
|
|
|
build and push emulator image:
|
|
|
|
when: manual
|
|
|
|
before_script:
|
|
|
|
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
|
|
|
script:
|
|
|
|
- docker build -t ${CI_REGISTRY_IMAGE}/trezor-emulator:latest -f ./docker/emulator/Dockerfile .
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}/trezor-emulator:latest
|
2019-03-25 14:34:35 +00:00
|
|
|
|
|
|
|
build master:
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-03-25 18:14:14 +00:00
|
|
|
- ./build-docker.sh HEAD local
|
2019-03-25 14:34:35 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- build-docker/boardloader/boardloader.bin
|
|
|
|
- build-docker/bootloader/bootloader.bin
|
|
|
|
- build-docker/firmware/firmware.bin
|