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 - 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'