-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from Waldz/feature/MYST-577-working-releases
MYST-577 Fix missing version during "dev" builds
- Loading branch information
Showing
13 changed files
with
97 additions
and
91 deletions.
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