Skip to content
Permalink
Browse files
Merge pull request #766 from hilary/dockerhub_automation
stabilize dockerhub make targets
  • Loading branch information
hilary committed Mar 18, 2020
2 parents 0c4036f + 1df5e50 commit 0e5b6c67dbd8bfa1d85a1ab6bb71be1b8ea6ff4b
Showing with 6 additions and 5 deletions.
  1. +6 −5 scripts/snap_image.sh
@@ -21,20 +21,21 @@ build_local_snap() {
}

build_pre() {
version="$(ORIGIN=${ORIGIN:-origin} SNAP_IMAGE=true "$DIR/scripts/version.sh")"
version="$(ORIGIN=${ORIGIN} SNAP_IMAGE=true "$DIR/scripts/version.sh")"
prerelease="sammytheshark/${REPO_NAME}:${version}"

docker tag "$REPO_NAME" "$prerelease" && \
docker push "$prerelease" && \
docker rename "$prerelease" "$SAMMY_LATEST" && \
docker push "$prerelease"

docker tag "$REPO_NAME" "$SAMMY_LATEST" && \
docker push "$SAMMY_LATEST"
}

build_finalize() {
version=$("ORIGIN=${ORIGIN} $DIR/scripts/version.sh" -s)
version=$(ORIGIN="${ORIGIN}" "$DIR/scripts/version.sh" -s)
release="sammytheshark/${REPO_NAME}:$version"

docker rename "$SAMMY_LATEST" "$release" && \
docker tag "$SAMMY_LATEST" "$release" && \
docker push "$release"
}

0 comments on commit 0e5b6c6

Please sign in to comment.