Skip to content
Snippets Groups Projects
Commit b9e33a7f authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Add functionality to force no-cache build in CI

parent 063a5f4e
No related branches found
No related tags found
1 merge request!201Add awkward-array package
...@@ -30,6 +30,9 @@ variables: ...@@ -30,6 +30,9 @@ variables:
## is this nightly or not? ## is this nightly or not?
NIGHTLY: 0 NIGHTLY: 0
## Force a rebuild without using cache
FORCE_NOCACHE: 0
stages: stages:
- config - config
- build:base ## base OS image - build:base ## base OS image
...@@ -191,6 +194,11 @@ jug_dev:default: ...@@ -191,6 +194,11 @@ jug_dev:default:
## move spacke directory and spack.yaml into the container build directory ## move spacke directory and spack.yaml into the container build directory
- cp -r spack containers/jug - cp -r spack containers/jug
- cp -r spack.yaml containers/jug/spack/spack.yaml - cp -r spack.yaml containers/jug/spack/spack.yaml
- |
if [ $FORCE_NOCACHE = 1 ]; then
echo "FORCE_NOCACHE set"
export PACKAGE_HASH=`date +%s`
fi
## Optionally build the raw builder image ## Optionally build the raw builder image
- test ${EXPORT_BUILDER} = 1 && docker build - test ${EXPORT_BUILDER} = 1 && docker build
-t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:builder-${INTERNAL_TAG} -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:builder-${INTERNAL_TAG}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment