Skip to content

Commit

Permalink
/run-deploy-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Lliillyy committed Dec 11, 2023
1 parent e5b5565 commit 03c2bc0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
-e USE_GKE_GCLOUD_AUTH_PLUGIN=True \
-e GCP_PROJECT=ac215project-398401 \
-e GCP_ZONE=us-west3-b \
app_deployment sh deploy-app.sh
app_deployment ./deploy-app.sh
- run: echo "Job's status is ${{ job.status }}."
10 changes: 9 additions & 1 deletion src/app_deploy/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ gcloud config set project $GCP_PROJECT
# Configure GCR
gcloud auth configure-docker gcr.io -q

/bin/bash
args="$@"
echo $args

if [[ -z ${args} ]];
then
/bin/bash
else
/bin/bash $args
fi
2 changes: 1 addition & 1 deletion src/app_deploy/docker-shell.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# exit immediately if a command exits with a non-zero status
#set -e
set -e

# Define some environment variables
export IMAGE_NAME="app_deployment"
Expand Down
4 changes: 2 additions & 2 deletions src/app_deploy/update-deploy-app.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# exit immediately if a command exits with a non-zero status
#set -e
set -e

# Define some environment variables
export IMAGE_NAME="app_deployment"
Expand All @@ -27,4 +27,4 @@ docker run --rm --name $IMAGE_NAME \
-e USE_GKE_GCLOUD_AUTH_PLUGIN=True \
-e GCP_PROJECT=$GCP_PROJECT \
-e GCP_ZONE=$GCP_ZONE \
$IMAGE_NAME sh deploy-app.sh
$IMAGE_NAME ./deploy-app.sh
2 changes: 1 addition & 1 deletion src/frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import "./App.css";
import { Configuration, OpenAIApi } from "openai";

const APP_VERSION = "1.1";
const APP_VERSION = "1.0";

// Reference: https://github.com/EBEREGIT/react-chatgpt-tutorial

Expand Down

0 comments on commit 03c2bc0

Please sign in to comment.