diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 857265b..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,39 +0,0 @@ -stages: - - build - - test - -before_script: - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - - eval $(ssh-agent -s) - - mv "$SSH_DEPLOY_KEY" gitlab_deploy_key # copies the file from the variable. - - chmod 600 gitlab_deploy_key - - ssh-add gitlab_deploy_key - - mkdir -p ~/.ssh - - '[[ -f /.dockerenv ]] && echo -e "Host gitlab.com\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - - echo "$KNOWN_HOSTS" >> ~/.ssh/known_hosts - -build: - stage: build - image: rust:1.85 - script: - - cargo build --release - artifacts: - paths: - - target/release/songparser - expire_in: 1 week - cache: - key: "cargo-cache" - paths: - - target/ - - ~/.cargo/ - -test: - stage: test - image: rust:latest - script: - - cargo test - cache: - key: "cargo-cache" - paths: - - target/ - - ~/.cargo/