Skip to content
Snippets Groups Projects
Commit a0c482a6 authored by Brian Lewis's avatar Brian Lewis
Browse files

Try out adding releases to CI

parent b155dbf3
No related branches found
No related tags found
2 merge requests!2Ingest different DRS formats,!1Ingest
Pipeline #16139 failed
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
stages: stages:
- test - test
- build
- release
fmt: default:
stage: test
image: rust:latest image: rust:latest
tags: tags:
- docker, specific - docker, specific
fmt:
stage: test
before_script: before_script:
- rustup component add rustfmt - rustup component add rustfmt
script: script:
...@@ -13,9 +17,6 @@ fmt: ...@@ -13,9 +17,6 @@ fmt:
clippy: clippy:
stage: test stage: test
image: rust:latest
tags:
- docker, specific
before_script: before_script:
- rustup component add clippy - rustup component add clippy
script: script:
...@@ -23,8 +24,26 @@ clippy: ...@@ -23,8 +24,26 @@ clippy:
test: test:
stage: test stage: test
image: rust:latest
tags:
- docker, specific
script: script:
- cargo test - cargo test
build:
stage: release
script:
- cargo build --release
artifacts:
paths:
- target/release/freva-ingest
rules:
- if: $CI_COMMIT_TAG
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo "creating release $CI_COMMIT_TAG"
release:
name: $CI_COMMIT_TAG
description: ./CHANGELOG.md
tag_name: $CI_COMMIT_TAG
ref: $CI_COMMIT_SHA
CHANGELOG.md 0 → 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment