-
Notifications
You must be signed in to change notification settings - Fork 11
/
screwdriver.yaml
38 lines (37 loc) · 1.47 KB
/
screwdriver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
shared:
image: rust:1.51
jobs:
pr:
requires: [~pr]
steps:
- run_arbitrary_script: apt-get update && apt-get -y install clang openssl && rustup component add rustfmt && cargo check && cargo test -- --test-threads=1
main:
requires: [~commit]
steps:
- run_arbitrary_script: apt-get update && apt-get -y install clang openssl && rustup component add rustfmt && cargo test -- --test-threads=1 && cargo build --release
secrets:
- CI_DEPLOY_USERNAME
- CI_DEPLOY_PASSWORD
- DOCKER_EMAIL
- DOCKER_REPO
- DOCKER_PASSWORD
- DOCKER_REPOSITORY
- DOCKER_USERNAME
annotations:
screwdriver.cd/dockerEnabled: true
publish:
requires: [~main]
steps:
- create_tag:
/bin/bash create_git_tag.sh
- build_and_publish_image:
LOGIN_USERNAME=$DOCKER_USERNAME LOGIN_PASSWORD=$DOCKER_PASSWORD /bin/bash push_docker.sh
- publish_docs:
apt-get update && apt-get -y install clang openssl python3-pip && rustup component add rustfmt && cargo doc && echo '<meta http-equiv=refresh content=0;url=myst/index.md>' > target/doc/index.html && cp target/doc/index.html target/doc/index.md && pip3 install ghp-import && ghp-import -n target/doc && git push -qf https://$GITHUB_TOKEN@github.com/OpenTSDB/opentsdb-meta.git gh-pages
annotations:
screwdriver.cd/dockerEnabled: true
secrets:
- DOCKER_EMAIL
- DOCKER_PASSWORD
- DOCKER_USERNAME
- GITHUB_TOKEN