環境
- Gitlab 13.9.5-ee
.gitlab-ci.yml
答え: dotenv と dependencies を使います
stages:
- stage1
- stage2
echo1:
image:
name: alpine:latest
stage: stage1
script:
- "export MSG=hello"
- "echo ${MSG}"
- echo "MSG=HELLO" >> build.env
artifacts:
reports:
dotenv: build.env
echo2:
image:
name: alpine:latest
stage: stage2
script:
- "echo ${MSG}"
dependencies:
- echo1
0 件のコメント:
コメントを投稿