chore(workflows): nevermind, corrected it
This commit is contained in:
parent
50256abceb
commit
ab20e8e285
2 changed files with 11 additions and 5 deletions
|
|
@ -76,6 +76,10 @@ jobs:
|
||||||
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
|
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
||||||
|
|
||||||
|
API_PORT: ${{ secrets.API_PORT }}
|
||||||
|
FRONTEND_PORT: ${{ secrets.FRONTEND_PORT }}
|
||||||
|
AI_API_KEY: ${{ secrets.AI_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
# Begin setting up SSH w/ Secrets
|
# Begin setting up SSH w/ Secrets
|
||||||
install -m 600 -D /dev/null ~/.ssh/$DEPLOY_USER
|
install -m 600 -D /dev/null ~/.ssh/$DEPLOY_USER
|
||||||
|
|
@ -88,9 +92,11 @@ jobs:
|
||||||
docker context use deploy
|
docker context use deploy
|
||||||
|
|
||||||
# Add secrets to the .env file
|
# Add secrets to the .env file
|
||||||
echo ${{ secrets.API_PORT }} >> .env
|
echo <<EOF > .env
|
||||||
echo ${{ secrets.FRONTEND_PORT }} >> .env
|
"API_PORT=$API_PORT"
|
||||||
echo ${{ secrets.AI_API_KEY }} >> .env
|
"FRONTEND_PORT=$FRONTEND_PORT"
|
||||||
|
"AI_API_KEY=$AI_API_KEY"
|
||||||
|
EOF
|
||||||
|
|
||||||
# Check to see if we have checked out the repo.
|
# Check to see if we have checked out the repo.
|
||||||
docker compose down
|
docker compose down
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ COPY frontend/ .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# NOTE: Backend setup
|
# NOTE: Backend setup
|
||||||
FROM node:25-alpine AS backend-build
|
FROM python:alpine AS backend-build
|
||||||
|
|
||||||
RUN apk add --no-cache python3 py3-pip
|
#RUN apk add --no-cache python3 py3-pip
|
||||||
|
|
||||||
WORKDIR /app/api
|
WORKDIR /app/api
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue