Skip to content

Commit 923b6d9

Browse files
committed
ci: add tanker-dev registry
1 parent f390f89 commit 923b6d9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[registries]
22
tanker = { index = "https://gitlab.com/TankerHQ/rust-crate-index" }
3+
tanker-dev = { index = "https://gitlab.com/TankerHQ/rust-dev-crate-index" }
34

45
[http]
56
timeout = 300

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include:
22
project: TankerHQ/gitlab-ci-files
33
file: /rust.yml
4-
ref: 3c2982f66615f3e203589c6e8471c1a1d2de3723
4+
ref: d00adef9b8824389752d37a9e4d25ebdcd906759
55

66
check/native-from-sources/linux:
77
extends:
@@ -113,7 +113,7 @@ deploy:
113113
- .tags/linux
114114
- .rules/deploy/rust
115115
script:
116-
- poetry run python run-ci.py deploy --version $SDK_RUST_RELEASE_VERSION
116+
- poetry run python run-ci.py deploy --version $SDK_RUST_RELEASE_VERSION --registry $SDK_RUST_CARGO_REGISTRY
117117
release:
118118
description: sdk-rust v$SDK_RUST_RELEASE_VERSION
119119
tag_name: v$SDK_RUST_RELEASE_VERSION

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2018"
55
authors = ["Tanker Team <[email protected]>"]
66
license = "Apache-2.0"
7-
publish = ["tanker"]
7+
publish = ["tanker", "tanker-dev"]
88
include = ["native", "src", "tests", "build.rs"]
99

1010
[dependencies]

run-ci.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ def deploy(args: argparse.Namespace) -> None:
232232
ui.fatal("Aborting deploy because of missing targets:", *missing_targets)
233233

234234
version = args.version
235+
registry = args.registry
235236
tankerci.bump_files(version)
236237

237-
tankerci.run("cargo", "publish", "--allow-dirty")
238+
tankerci.run("cargo", "publish", "--allow-dirty", f"--registry={registry}")
238239

239240

240241
def main() -> None:
@@ -282,6 +283,7 @@ def main() -> None:
282283
download_artifacts_parser.add_argument("--job-name", required=True)
283284
deploy_parser = subparsers.add_parser("deploy")
284285
deploy_parser.add_argument("--version", required=True)
286+
deploy_parser.add_argument("--registry", required=True)
285287
subparsers.add_parser("mirror")
286288

287289
args = parser.parse_args()

0 commit comments

Comments
 (0)