Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment