Commit d266a3e3 authored by NecroTechno's avatar NecroTechno
Browse files

ci: remove gitlab ci

parent 4bbf26c3
image: "rust:latest"
stages:
- build
- deploy
# Use cargo to test the project
build:
stage: build
script:
- export PATH="$HOME/.cargo/bin:$PATH"
- curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git cobalt-org/cobalt.rs --crate cobalt
- ./git_log.sh
- cobalt build
- cp .htaccess _site/
- cp -r files/ _site/
artifacts:
paths:
- _site/
deploy:
stage: deploy
script:
- apt-get update -qq
- apt-get install -qq git rsync
# Setup SSH deploy keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- rsync -va --exclude '.git' --exclude '.circleci' --delete ./_site/ circleci@necro.tech:/var/www/necro.tech/public_html
......@@ -7,7 +7,7 @@ region: ams
static_sites:
- build_command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s
-- -y; source $HOME/.cargo/env; curl -LSfs https://japaric.github.io/trust/install.sh
| sh -s -- --git cobalt-org/cobalt.rs --crate cobalt; sh git_log.sh; cobalt build
| sh -s -- --git cobalt-org/cobalt.rs --crate cobalt; sh ./git_log.sh; cobalt build
environment_slug: html
gitlab:
branch: master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment