Add Job ID
This commit is contained in:
parent
4ac89d1133
commit
c79f5aba7f
1 changed files with 6 additions and 1 deletions
|
@ -27,9 +27,14 @@ build:
|
||||||
- cargo build -r
|
- cargo build -r
|
||||||
- echo "Compile complete."
|
- echo "Compile complete."
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- echo JOB_ID=&CI_JOB_ID >> job.env
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /builds/Neshura/cloudflare-dns-updater
|
- /builds/Neshura/cloudflare-dns-updater
|
||||||
|
reports:
|
||||||
|
dotenv: job.env
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- !reference [.deploy, rules]
|
- !reference [.deploy, rules]
|
||||||
|
@ -43,7 +48,7 @@ Tag Release:
|
||||||
rules:
|
rules:
|
||||||
- !reference [.deploy, rules]
|
- !reference [.deploy, rules]
|
||||||
script:
|
script:
|
||||||
- echo "running release job"
|
- echo "running Release Job, attaching Artifact from Job $JOB_ID"
|
||||||
release:
|
release:
|
||||||
tag_name: '$CI_COMMIT_TAG'
|
tag_name: '$CI_COMMIT_TAG'
|
||||||
description: '$CI_COMMIT_TAG'
|
description: '$CI_COMMIT_TAG'
|
||||||
|
|
Loading…
Reference in a new issue