Commit e1feb243 authored by Nico's avatar Nico
Browse files

generate date in extra step

If build runs through midnight, this avoids different targets having
different build times.
parent 51923ee2
...@@ -5,14 +5,24 @@ variables: ...@@ -5,14 +5,24 @@ variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
stages: stages:
- generate_date
- build - build
- package - package
generate_date:
stage: generate_date
script:
- date '+%Y-%m-%d' > build.date
artifacts:
paths:
- build.date
expire_in: 1 day
.target: .target:
stage: build stage: build
script: script:
- make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR" - 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 V=1 -j`nproc` - 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: except:
- tags - tags
artifacts: artifacts:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment