-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating code to test route for UBCCWL
- Loading branch information
1 parent
6ae82cb
commit 0181117
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Prompt for user input for the two tags | ||
# This script tags the images based on user input and pushes them to the appropriate Docker repository. | ||
|
||
echo "Enter tag for ipeer-app (e.g., dfd9bb7cdf21):" | ||
read UI_TAG | ||
echo "Enter tag for ipeer-worker (e.g., ed9129e7d204):" | ||
read APP_TAG | ||
|
||
# Define the image names | ||
UI_IMAGE="dangtue2020/ipeer_app" | ||
APP_IMAGE="dangtue2020/ipeer_worker" | ||
|
||
# Tag the Docker images | ||
echo "Tagging images..." | ||
docker tag $UI_TAG $UI_IMAGE:$UI_TAG | ||
docker tag $APP_TAG $APP_IMAGE:$APP_TAG | ||
|
||
# List the Docker images | ||
docker images | ||
|
||
# Push the tagged images to the Docker repository | ||
echo "Pushing images..." | ||
docker push $UI_IMAGE:$UI_TAG | ||
docker push $APP_IMAGE:$APP_TAG | ||
|
||
echo "Docker images tagged and pushed successfully." |