Skip to content

Commit

Permalink
updating code to test route for UBCCWL
Browse files Browse the repository at this point in the history
  • Loading branch information
ubc-tuehoang committed Nov 27, 2024
1 parent 6ae82cb commit 0181117
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
// Authentication routes
Router::connect('/login', array('plugin' => 'guard', 'controller' => 'guard',
'action' => 'login'));
Router::connect('/loginUBCCWL', array('plugin' => 'guard', 'controller' => 'guard',
'action' => 'login'));
Router::connect('/logout', array('plugin' => 'guard', 'controller' => 'guard',
'action' => 'logout'));
Router::connect('/loginout/loginByCWL', array('plugin' => 'guard', 'controller' => 'guard',
Expand Down
28 changes: 28 additions & 0 deletions docker-push-tag.sh
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."

0 comments on commit 0181117

Please sign in to comment.