2019-04-27 17:16:50 +00:00
|
|
|
environment:
|
|
|
|
stage: environment
|
2019-07-29 12:58:16 +00:00
|
|
|
image: docker
|
2019-08-08 11:59:32 +00:00
|
|
|
when: manual
|
2019-04-27 17:16:50 +00:00
|
|
|
variables:
|
2019-04-28 10:15:24 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules
|
2020-06-07 19:49:06 +00:00
|
|
|
CONTAINER_NAME: "$CI_REGISTRY/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix"
|
2019-04-27 17:16:50 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
|
|
|
script:
|
2020-06-07 10:01:42 +00:00
|
|
|
- wget -nc -P ci/ http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-minirootfs-3.12.0-x86_64.tar.gz
|
2020-10-11 20:15:45 +00:00
|
|
|
- docker build --tag $CONTAINER_NAME:$CI_COMMIT_SHA --tag $CONTAINER_NAME:latest --build-arg FULLDEPS_TESTING=1 ci/
|
2019-04-27 17:16:50 +00:00
|
|
|
- docker push $CONTAINER_NAME:$CI_COMMIT_SHA
|
|
|
|
- docker push $CONTAINER_NAME:latest
|