Skip to content

refactor(main): Update README.md environment variables section for lo… #16

refactor(main): Update README.md environment variables section for lo…

refactor(main): Update README.md environment variables section for lo… #16

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
concurrency:
group: main
cancel-in-progress: true
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Configure SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USER: ${{ secrets.SSH_USER }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/ci_cd_zenith
chmod 600 ~/.ssh/ci_cd_zenith
cat >>~/.ssh/config <<END
Host target
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/ci_cd_zenith
LogLevel ERROR
StrictHostKeyChecking no
END
- name: Run deploy
run: |
ssh target "cd bounswe2024group11/backend/ && docker-compose down && git stash && git pull && docker-compose build && docker-compose up -d --force-recreate"