gitlab-rpi
Jordan Sokolic 2020-08-28 09:11:45 +03:00
parent 076e52c7d2
commit 2a1a60f15b
1 changed files with 19 additions and 0 deletions

19
.gitlab-ci.yml 100644
View File

@ -0,0 +1,19 @@
variables:
CI_IMAGE: $DOCKER_HUB_USER/openwrt
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_TOKEN
build:
image: docker:latest
stage: build
services:
- docker:dind
script:
- cp openwrt.conf.example openwrt.conf
- sed -i -E "s@(BUILD_TAG=).+@\1$CI_IMAGE@" openwrt.conf
- make build
- docker push $CI_IMAGE
- docker push $CI_IMAGE:19.07.3-x86_64
only:
- master