diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0369e47..00295c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ stages: - build - test - - release cache: &global_cache key: @@ -17,6 +16,7 @@ cache: &global_cache variables: RUSTFLAGS: "-Dwarnings" + SQLX_OFFLINE: "true" build: image: registry.karaolidis.com/karaolidis/veil/rust @@ -56,42 +56,3 @@ sast: stage: test include: - 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