zmk_mf68/.gitlab-ci.yml

32 lines
752 B
YAML
Raw Normal View History

2020-05-02 05:07:34 +10:00
build:
image: zephyrprojectrtos/zephyr-build
before_script:
- west init -l .
- west update
2020-05-02 06:11:07 +10:00
- west config --global zephyr.base-prefer configfile
2020-05-02 06:29:18 +10:00
- west zephyr-export
- pip3 install --user -r ../zephyr/scripts/requirements.txt
2020-05-02 05:07:34 +10:00
script:
2020-05-02 06:36:56 +10:00
- west build -b nucleo_wb55rg -- -DSHIELD=petejohanson_handwire
2020-05-11 13:27:40 +10:00
build:dockerimage:
services:
- docker:stable-dind
image: docker:stable
2020-05-11 23:44:37 +10:00
variables:
CI_BUILD_IMAGE: CI_REGISTRY_IMAGE/zmk-build
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
2020-05-11 13:27:40 +10:00
script:
2020-05-11 23:44:37 +10:00
- docker pull $CI_BUILD_IMAGE:latest || true
- docker build --cache-from $CI_BUILD_IMAGE:latest -t $CI_BUILD_IMAGE:latest .
- docker push $CI_BUILD_IMAGE:latest