Skip to content

Commit

Permalink
fix tag selection on stable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Jan 14, 2017
1 parent 4632dac commit b5bb382
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ This project adheres to [Semantic Versioning](http:https://semver.org/).

## [Unreleased]

## [v0.1.5] - 2017-01-14
### Fixed

- Stable releases were picking the wrong image (wrong tag: 0.1.5 instead of
v0.1.5)

## [v0.1.5] - 2017-01-14 [YANKED]

### Added

Expand Down
5 changes: 3 additions & 2 deletions src/docker.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::borrow::Cow;
use std::path::PathBuf;
use std::process::{Command, ExitStatus};
use std::{env, fs};
Expand Down Expand Up @@ -93,9 +94,9 @@ fn image(toml: Option<&Toml>, target: &Target) -> Result<String> {
.unwrap_or_else(|| {
let version = env!("CARGO_PKG_VERSION");
let tag = if version.ends_with("-dev") {
"latest"
Cow::from("latest")
} else {
version
Cow::from(format!("v{}", version))
};
format!("japaric/{}:{}", target.triple(), tag)
}))
Expand Down

0 comments on commit b5bb382

Please sign in to comment.