New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MYST-577 Fix missing version during "dev" builds #285
Merged
Waldz
merged 11 commits into
mysteriumnetwork:master
from
Waldz:feature/MYST-577-working-releases
Jul 11, 2018
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a9d0786
Release Docker latest image
Waldz fa817fa
Release Docker working image (on each master commit)
Waldz c77d03b
Pass current version to packaging scripts
Waldz 3555064
Stop repeating build for each deploy provider
Waldz bc9a735
Release several Docker images at once
Waldz ac94d03
Make shorter names for locally built Docker images
Waldz c2c2951
Inject semantic version during CI building
Waldz c4d34b2
Make 'dev' builds version compatible with Debian packages
Waldz a688ce2
Pass OS to standalone script
Waldz ee7d4aa
Fix operand suffix removing for Darwin standalone
Waldz 19fa95d
Define Travis conditional variable
Waldz File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,46 @@ | ||
#!/bin/bash | ||
|
||
########################################################################### | ||
# Release creates all supported Docker images and uploads them to Docker Hub | ||
# Uploads all created Docker images to Docker Hub | ||
# - https://hub.docker.com/r/mysteriumnetwork/mysterium-node/ | ||
# - https://hub.docker.com/r/mysteriumnetwork/mysterium-client/ | ||
# | ||
# Usage: | ||
#> bin/release_docker <version> | ||
#> bin/release_docker <version>.. | ||
# | ||
# Release specific version with personal Docker Hub account: | ||
#> docker login john.developer **** | ||
# Release image (specific version): | ||
#> bin/release_docker 0.0.1 | ||
# | ||
# Tag several versions at the same time | ||
#> bin/release_docker 0.0.1 0.0.1-alpine alpine latest | ||
# Release image (several versions): | ||
#> bin/release_docker 0.0.1 latest | ||
# | ||
# Create image (with personal Docker Hub account): | ||
#> DOCKER_USERNAME=john.developer DOCKER_PASSWORD=**** bin/release_docker 0.0.1 | ||
|
||
set -e | ||
|
||
source bin/helpers/output.sh | ||
source bin/helpers/docker.sh | ||
|
||
VERSION=$1 | ||
if [ -z "$VERSION" ]; then | ||
if [ -z "$1" ]; then | ||
print_error "Missing version!" | ||
exit 1 | ||
fi | ||
|
||
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin | ||
|
||
docker_release_image mysteriumnetwork/mysterium-node alpine ${VERSION} ${VERSION}-alpine alpine latest | ||
docker_release_image mysteriumnetwork/mysterium-node ubuntu ${VERSION} ${VERSION}-ubuntu ubuntu | ||
while test $# -gt 0; do | ||
VERSION_TAG=$1; shift; | ||
printf "Creating Docker Hub release '$VERSION_TAG' ..\n" \ | ||
|
||
docker_release_image mysterium-node:alpine mysteriumnetwork/mysterium-node:${VERSION_TAG} | ||
docker_release_image mysterium-node:alpine mysteriumnetwork/mysterium-node:${VERSION_TAG}-alpine | ||
docker_release_image mysterium-node:ubuntu mysteriumnetwork/mysterium-node:${VERSION_TAG}-ubuntu | ||
|
||
docker_release_image mysteriumnetwork/mysterium-client alpine ${VERSION} ${VERSION}-alpine alpine latest | ||
docker_release_image mysteriumnetwork/mysterium-client ubuntu ${VERSION}-ubuntu ubuntu | ||
docker_release_image mysterium-client:alpine mysteriumnetwork/mysterium-client:${VERSION_TAG} | ||
docker_release_image mysterium-client:alpine mysteriumnetwork/mysterium-client:${VERSION_TAG}-alpine | ||
docker_release_image mysterium-client:ubuntu mysteriumnetwork/mysterium-client:${VERSION_TAG}-ubuntu | ||
done | ||
|
||
print_success "Docker Hub release '$VERSION' created!" | ||
print_success "Docker Hub releases created!" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe space after 'source'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed