Skip to content

Update: Fixed empty state of notes and trms #39

Update: Fixed empty state of notes and trms

Update: Fixed empty state of notes and trms #39

Workflow file for this run

name: CICD
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Delete existing .env file
working-directory: server
run: |
if [ -f .env ]; then
rm .env
fi
- name: Update .env file
working-directory: server
run: |
# Overwrite the .env file with the new content from ENV_VARIABLES secret
echo "Overwriting .env file with new content from ENV_VARIABLES secret..."
echo "${{ secrets.ENV_VARIABLES }}" > .env
- name: Docker compose up
run: sudo docker compose -f ./docker/docker-compose.yml up -d --build