Skip to content
Snippets Groups Projects
Commit f1e89785 authored by romanvalov's avatar romanvalov
Browse files

check if reference tags works for caches

parent 9c3aa159
Loading
Checking pipeline status
.image-stable:
cache:
- key: image-stable
paths:
- smash.text
.image-latest:
cache:
- key: image-latest
paths:
- cache.text
build:
stage: build
script:
- set -ex
- echo "STAMP=$RANDOM" | tee .env
- cat .env > cache.text
- cat .env > smash.text
cache:
- !reference [.image-stable, cache]
- !reference [.image-latest, cache]
artifacts:
expire_in: 1 min
paths:
......@@ -14,7 +33,12 @@ test:
script:
- . .env
- echo "$STAMP"
- for m in `seq 1 60`; do echo $m; sleep 60; done
- cat cache.text
- cat smash.text
- for m in `seq 1 30`; do echo $m; sleep 30; done
cache:
- !reference [.image-stable, cache]
- !reference [.image-latest, cache]
deploy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment