Enhancing ci file
This commit is contained in:
@@ -8,9 +8,10 @@ build:
|
|||||||
image: rust:1.85
|
image: rust:1.85
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
|
- ls -R target/release/
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- target/release/icarus-models
|
- target/release/
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
cache:
|
cache:
|
||||||
key: "cargo-cache"
|
key: "cargo-cache"
|
||||||
@@ -29,6 +30,16 @@ test:
|
|||||||
- target/
|
- target/
|
||||||
- ~/.cargo/
|
- ~/.cargo/
|
||||||
|
|
||||||
|
test_variable:
|
||||||
|
stage: test
|
||||||
|
image: rust:1.85
|
||||||
|
script:
|
||||||
|
- echo "Checking CARGO_LOGIN_TOKEN..."
|
||||||
|
- if [[ -z "$CARGO_LOGIN_TOKEN" ]]; then echo "CARGO_LOGIN_TOKEN is empty!"; exit 1; else echo "CARGO_LOGIN_TOKEN is set."; fi
|
||||||
|
- env
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: rust:1.85
|
image: rust:1.85
|
||||||
|
Reference in New Issue
Block a user