mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 10:58:21 +00:00
fe3d67e259
I've decided to omit some places (e.g. build crypto) where it might be confusing if some submodules dependency is introduced. Well, that concerns tests stages as well, but I guess it is more likely for the build stage. Updates #108
17 lines
618 B
YAML
17 lines
618 B
YAML
environment:
|
|
stage: environment
|
|
image: docker:latest
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules
|
|
CONTAINER_NAME: "$CI_REGISTRY/trezor/trezor-firmware/environment"
|
|
services:
|
|
- docker:dind
|
|
before_script:
|
|
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
|
when: manual
|
|
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/
|
|
- docker push $CONTAINER_NAME:$CI_COMMIT_SHA
|
|
- docker push $CONTAINER_NAME:latest
|