...
 
Commits (3)
......@@ -5,14 +5,24 @@ variables:
DOCKER_DRIVER: overlay2
stages:
- generate_date
- build
- package
generate_date:
stage: generate_date
script:
- date '+%Y-%m-%d' > build.date
artifacts:
paths:
- build.date
expire_in: 1 day
.target:
stage: build
script:
- make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR"
- make -C gluon GLUON_SITEDIR="$CI_PROJECT_DIR" GLUON_TARGET="$GLUON_TARGET" GLUON_BRANCH=stable V=1 -j`nproc`
- make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR" BUILD_DATE=$(cat build.date)
- make -C gluon GLUON_SITEDIR="$CI_PROJECT_DIR" GLUON_TARGET="$GLUON_TARGET" GLUON_BRANCH=stable BUILD_DATE=$(cat build.date) V=1 -j`nproc`
except:
- tags
artifacts:
......@@ -22,9 +32,7 @@ stages:
cache:
paths:
- gluon/openwrt/dl
- gluon/openwrt/staging_dir
- gluon/openwrt/feeds
key: "target-$GLUON_TARGET"
key: "build"
target:ar71xx-generic:
extends: .target
......@@ -132,6 +140,10 @@ package:
- make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR"
- for branch in "stable" "beta" "nightly" "experimental"; do make -C gluon manifest GLUON_BRANCH="$branch" GLUON_SITEDIR="$CI_PROJECT_DIR" V=1; done
- if [ -n "$GLUON_SIGN_KEY" ]; then cd gluon && for branch in "nightly" "experimental"; do ./contrib/sign.sh <(echo "$GLUON_SIGN_KEY") "output/images/sysupgrade/$branch.manifest"; done; fi
cache:
paths:
- gluon/openwrt/dl
key: "package"
artifacts:
paths:
- gluon/output
......