Add Job ID

This commit is contained in:
Neshura 2023-02-26 23:21:44 +01:00
parent 4ac89d1133
commit c79f5aba7f
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -27,9 +27,14 @@ build:
- cargo build -r
- echo "Compile complete."
after_script:
- echo JOB_ID=&CI_JOB_ID >> job.env
artifacts:
paths:
- /builds/Neshura/cloudflare-dns-updater
reports:
dotenv: job.env
rules:
- !reference [.deploy, rules]
@ -43,7 +48,7 @@ Tag Release:
rules:
- !reference [.deploy, rules]
script:
- echo "running release job"
- echo "running Release Job, attaching Artifact from Job $JOB_ID"
release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'