2022-01-21 21:02:09 +00:00
|
|
|
.environment:
|
2019-04-27 17:16:50 +00:00
|
|
|
stage: environment
|
2019-07-29 12:58:16 +00:00
|
|
|
image: docker
|
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"
|
2021-12-07 16:13:02 +00:00
|
|
|
ALPINE_RELEASE: "3.15"
|
2020-12-27 20:28:52 +00:00
|
|
|
ALPINE_ARCH: "x86_64"
|
2021-12-07 16:13:02 +00:00
|
|
|
ALPINE_VERSION: "3.15.0"
|
|
|
|
ALPINE_CHECKSUM: "ec7ec80a96500f13c189a6125f2dbe8600ef593b87fc4670fe959dc02db727a2"
|
|
|
|
NIX_VERSION: "2.4"
|
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:
|
2021-07-20 09:07:03 +00:00
|
|
|
- wget -nc -P ci/ https://dl-cdn.alpinelinux.org/alpine/v$ALPINE_RELEASE/releases/$ALPINE_ARCH/alpine-minirootfs-$ALPINE_VERSION-$ALPINE_ARCH.tar.gz
|
2021-09-29 10:59:32 +00:00
|
|
|
- echo "${ALPINE_CHECKSUM} ci/alpine-minirootfs-$ALPINE_VERSION-$ALPINE_ARCH.tar.gz" | sha256sum -c
|
2021-07-06 10:47:51 +00:00
|
|
|
- docker build --tag $CONTAINER_NAME:$CI_COMMIT_SHA --tag $CONTAINER_NAME:latest --build-arg ALPINE_VERSION="$ALPINE_VERSION" --build-arg ALPINE_ARCH="$ALPINE_ARCH" --build-arg NIX_VERSION="$NIX_VERSION" --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
|
2022-02-10 11:30:01 +00:00
|
|
|
tags:
|
|
|
|
- runner0_dind
|
2022-01-21 21:02:09 +00:00
|
|
|
|
|
|
|
environment manual:
|
|
|
|
extends: .environment
|
|
|
|
when: manual
|
|
|
|
|
|
|
|
environment scheduled:
|
|
|
|
extends: .environment
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $SCHEDULED_ENVIRONMENR_BUILD == "true"
|