Skip to content

Commit

Permalink
Update build_and_docker.sh Tag gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenWanjala authored May 2, 2024
1 parent 6e6f6f4 commit 9dba7a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build_and_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ fi

# Step 3: Tag the Docker image
docker tag rev_vault stephenwanjala/rev_vault:latest
# for gcloud
docker tag stephenwanjala/rev_vault:latest northamerica-northeast1-docker.pkg.dev/revvault/revvault/rev_vault:latest

# Step 4: Push the Docker image to Docker Hub
docker push stephenwanjala/rev_vault:latest


# Check if the Docker image push was successful
if [ $? -ne 0 ]; then
echo "Docker image push failed."
exit 1
fi

echo "Ktor project build, Docker image build, and Docker image push completed successfully."
echo "Ktor project build, Docker image build, and Docker image push completed successfully."

0 comments on commit 9dba7a0

Please sign in to comment.