Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
JUDGE0_USE_RAPIDAPI: ${{ secrets.JUDGE0_USE_RAPIDAPI }}
JUDGE0_RAPIDAPI_HOST: ${{ secrets.JUDGE0_RAPIDAPI_HOST }}
SPRING_CALLBACK_URL: ${{ secrets.SPRING_CALLBACK_URL }}
GOOGLE_SERVICE_ACCOUNT_JSON_B64: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON_B64 }}
GOOGLE_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}

steps:
- name: Checkout code
Expand All @@ -49,7 +49,7 @@ jobs:
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
port: ${{ secrets.DEPLOY_PORT || 22 }}
envs: DEPLOY_DIR,DOCKERHUB_USERNAME,POSTGRES_HOST,POSTGRES_PORT,POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,GEMINI_API_KEY,JUDGE0_API_KEY,JUDGE0_API_URL,JUDGE0_USE_RAPIDAPI,JUDGE0_RAPIDAPI_HOST,SPRING_CALLBACK_URL,GOOGLE_SERVICE_ACCOUNT_JSON_B64
envs: DEPLOY_DIR,DOCKERHUB_USERNAME,POSTGRES_HOST,POSTGRES_PORT,POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,GEMINI_API_KEY,JUDGE0_API_KEY,JUDGE0_API_URL,JUDGE0_USE_RAPIDAPI,JUDGE0_RAPIDAPI_HOST,SPRING_CALLBACK_URL,GOOGLE_SERVICE_ACCOUNT_JSON
script: |
set -e
mkdir -p "${{ env.DEPLOY_DIR }}"
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

echo ">>> Writing Vertex AI service account key..."
mkdir -p secrets
echo "$GOOGLE_SERVICE_ACCOUNT_JSON_B64" | base64 -d > secrets/p-project-vertex_ex.json
printf '%s' "$GOOGLE_SERVICE_ACCOUNT_JSON" > secrets/p-project-vertex_ex.json
chmod 600 secrets/p-project-vertex_ex.json

echo ">>> Ensuring shared Docker network exists..."
Expand Down
Loading