Commit
+41 -0 +/-2 browse
1 | diff --git a/.cirrus.yml b/.cirrus.yml |
2 | index 31dc9d0..7ea7ff3 100644 |
3 | --- a/.cirrus.yml |
4 | +++ b/.cirrus.yml |
5 | @@ -30,3 +30,34 @@ test_task: |
6 | build_script: cargo build |
7 | test_script: cargo test |
8 | before_cache_script: rm -rf $CARGO_HOME/registry/index |
9 | + |
10 | + # Publish Cargo releases |
11 | + publish_task: |
12 | + only_if: $CIRRUS_TAG != '' |
13 | + depends_on: |
14 | + - fmt |
15 | + - clippy |
16 | + - test |
17 | + container: |
18 | + image: rust:latest |
19 | + env: |
20 | + CARGO_TOKEN: ENCRYPTED[24c3996bcead2ad8411ef58926d1efd19a08dcdfd99dbf21f900155bd676908db322dec354b026f9ba3e5094e789c6d1] |
21 | + cargo_cache: |
22 | + folder: $CARGO_HOME/registry |
23 | + fingerprint_script: cat Cargo.lock |
24 | + publish_script: cargo publish --token "$CARGO_TOKEN" |
25 | + |
26 | + # Build releases |
27 | + tag_docker_builder: |
28 | + only_if: $CIRRUS_TAG != '' |
29 | + env: |
30 | + DOCKER_USERNAME: ENCRYPTED[e27aa1f15f278868b84497fd0fbd007127251ed44de671de28cee8c0669ff5b886980a409da9bae8c5cff6dbe88fe289] |
31 | + DOCKER_PASSWORD: ENCRYPTED[491d248564335b8760a65f9c69f970d3ba6bf9ba169f9e6f93836e8a7360d13f421afd4630f71d8981182da0bf26c2dd] |
32 | + build_script: docker build --tag jasonwhite0/rudolfs:$CIRRUS_TAG --tag jasonwhite0/rudolfs:latest . |
33 | + login_script: echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin |
34 | + push_script: docker push jasonwhite0/rudolfs:$CIRRUS_TAG && docker push jasonwhite0/rudolfs:latest |
35 | + |
36 | + # Build the dockerfile, but don't publish it. |
37 | + build_docker_builder: |
38 | + only_if: $CIRRUS_TAG == '' |
39 | + build_script: docker build . |
40 | diff --git a/Cargo.toml b/Cargo.toml |
41 | index aec1174..a9ec405 100644 |
42 | --- a/Cargo.toml |
43 | +++ b/Cargo.toml |
44 | @@ -3,6 +3,16 @@ name = "rudolfs" |
45 | version = "0.1.0" |
46 | authors = ["Jason White"] |
47 | edition = "2018" |
48 | + description = """ |
49 | + A high-performance, caching Git LFS server with an AWS S3 back-end. |
50 | + """ |
51 | + documentation = "https://github.com/jasonwhite/rudolfs" |
52 | + homepage = "https://github.com/jasonwhite/rudolfs" |
53 | + repository = "https://github.com/jasonwhite/rudolfs" |
54 | + readme = "README.md" |
55 | + keywords = ["git-lfs", "s3"] |
56 | + categories = ["command-line-utilities"] |
57 | + license = "MIT" |
58 | |
59 | [dependencies] |
60 | bytes = "0.4" |