Skip to content

Commit

Permalink
chore: switch srtool default image from chevdor to paritytech
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jul 14, 2021
1 parent 2eb3925 commit e317711
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This alias is likely set in your `.bash_profile` or `.zshrc`, make sure to remov

### Install

cargo install --git https://gitlab.com/chevdor/srtool-cli
cargo install --git https://github.com/chevdor/srtool-cli

## Usage

Expand Down
2 changes: 1 addition & 1 deletion README_src.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NOTE: This alias is likely set in your `.bash_profile` or `.zshrc`, make sure to

=== Install

cargo install --git https://gitlab.com/chevdor/srtool-cli
cargo install --git https://github.com/chevdor/srtool-cli

== Usage

Expand Down
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn main() {

let command = match opts.subcmd {
SubCommand::Build(build_opts) => {
println!("Found {tag}, we will be using chevdor/srtool:{tag} for the build", tag = tag);
println!("Found {tag}, we will be using {image}:{tag} for the build", tag = tag, image = image);

let app = if build_opts.app { " --app" } else { "" };
let json = if opts.json || build_opts.json { " --json" } else { "" };
Expand Down
4 changes: 2 additions & 2 deletions cli/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Opts {
/// compatible with the original srtool image. Using a random image,
/// you take the risk to NOT produce exactly the same deterministic
/// result than srtool.
#[clap(short, long, default_value = "chevdor/srtool")]
#[clap(short, long, default_value = "paritytech/srtool")]
pub image: String,

/// This option is DEPRECATED and has no effect
Expand All @@ -29,7 +29,7 @@ pub struct Opts {

/// This utility helps starting a container from the srtool Docker image.
/// It passes the right parameters and environment variables to the container.
/// Learn more about the srtool image here: https://gitlab.com/chevdor/srtool
/// Learn more about the srtool image here: https://github.com/paritytech/srtool
#[derive(Clap)]
pub enum SubCommand {
/// Start a new srtool container to build your runtime
Expand Down
4 changes: 2 additions & 2 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const CACHE_FILE: &str = "srtool-tag-latest.txt";

/// Fetch the latest image tag
pub fn fetch_image_tag() -> Result<String, ureq::Error> {
debug!("Fetching latest version from gitlab");
let url = "https://gitlab.com/chevdor/srtool/-/raw/master/RUSTC_VERSION";
debug!("Fetching latest version from github");
let url = "https://github.com/paritytech/srtool/-/raw/master/RUSTC_VERSION";
let tag: String = ureq::get(url).set("Content-Type", "application/txt").call()?.into_string()?;
debug!("tag: {}", tag);
Ok(tag)
Expand Down
2 changes: 1 addition & 1 deletion templates/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cargo install --git https://github.com/chevdor/srtool-cli
```
wget {{ DEBIAN_URL }}
dpkg -i srtool_linux_amd64_{{ VERSION }}.deb
tera --help
srtool --help
```

## MacOS
Expand Down

0 comments on commit e317711

Please sign in to comment.