Browse Source

Try using new build image.

xmkb
Pete Johanson 5 years ago
parent
commit
ba019c52a4
  1. 11
      .gitlab-ci.yml

11
.gitlab-ci.yml

@ -1,13 +1,17 @@
variables:
CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/zmk-build
build: build:
image: zephyrprojectrtos/zephyr-build image: $CI_BUILD_IMAGE
variables:
GIT_CLONE_PATH: $CI_BUILD_DIR/zmk
before_script: before_script:
- west init -l . - west init -l .
- west update - west update
- west config --global zephyr.base-prefer configfile - west config --global zephyr.base-prefer configfile
- west zephyr-export - west zephyr-export
- pip3 install --user -r ../zephyr/scripts/requirements.txt
script: script:
- west build -b nucleo_wb55rg -- -DSHIELD=petejohanson_handwire - west build -b nucleo_wb55rg -- -DSHIELD=petejohanson_handwire
@ -18,13 +22,10 @@ build:dockerimage:
image: docker:stable image: docker:stable
variables:
CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/zmk-build
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- docker pull $CI_BUILD_IMAGE:latest || true - docker pull $CI_BUILD_IMAGE:latest || true
- docker build --cache-from $CI_BUILD_IMAGE:latest -t $CI_BUILD_IMAGE:latest . - docker build --cache-from $CI_BUILD_IMAGE:latest -t $CI_BUILD_IMAGE:latest .

Loading…
Cancel
Save