@@ -1,7 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- release
|
|
||||||
|
|
||||||
cache: &global_cache
|
cache: &global_cache
|
||||||
key:
|
key:
|
||||||
@@ -17,6 +16,7 @@ cache: &global_cache
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
RUSTFLAGS: "-Dwarnings"
|
||||||
|
SQLX_OFFLINE: "true"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: registry.karaolidis.com/karaolidis/veil/rust
|
image: registry.karaolidis.com/karaolidis/veil/rust
|
||||||
@@ -56,42 +56,3 @@ sast:
|
|||||||
stage: test
|
stage: test
|
||||||
include:
|
include:
|
||||||
- template: Security/SAST.gitlab-ci.yml
|
- template: Security/SAST.gitlab-ci.yml
|
||||||
|
|
||||||
build-release:
|
|
||||||
image: registry.karaolidis.com/karaolidis/veil/rust
|
|
||||||
stage: release
|
|
||||||
cache:
|
|
||||||
<<: *global_cache
|
|
||||||
script:
|
|
||||||
- cargo build --release
|
|
||||||
after_script:
|
|
||||||
- echo "JOB_ID=$CI_JOB_ID" >> job.env
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- target/release/veil
|
|
||||||
expire_in: 1d
|
|
||||||
reports:
|
|
||||||
dotenv: job.env
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
release:
|
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli
|
|
||||||
stage: release
|
|
||||||
needs:
|
|
||||||
- job: build-release
|
|
||||||
artifacts: true
|
|
||||||
script:
|
|
||||||
- echo "Create Release $CI_COMMIT_TAG"
|
|
||||||
release:
|
|
||||||
name: Release $CI_COMMIT_TAG
|
|
||||||
tag_name: $CI_COMMIT_TAG
|
|
||||||
description: Release $CI_COMMIT_SHA
|
|
||||||
ref: $CI_COMMIT_TAG
|
|
||||||
assets:
|
|
||||||
links:
|
|
||||||
- name: veil
|
|
||||||
url: https://gitlab.com/karaolidis/veil/-/jobs/$CI_JOB_ID/artifacts/raw/target/release/veil
|
|
||||||
link_type: other
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
Reference in New Issue
Block a user