Skip to content

update ci

update ci #7

Workflow file for this run

name: Deploy to Container
on:
push:
branches:
- 13_continuous_integration
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to Container
env:
SECRET_PORT: ${{ secrets.SECRET_PORT }}
SECRET_PRIVATE_SSH: ${{ secrets.SECRET_PRIVATE_SSH }}
SECRET_SERVER: ${{ secrets.SECRET_SERVER }}
run: |
echo "${{ secrets.SECRET_PRIVATE_SSH }}" > p.key
mkdir -p ~/.ssh
touch ~/.ssh/known_hosts
echo "${{ secrets.SECRET_PUB }}" > ~/.ssh/known_hosts
ssh -i ./p.key -p ${{ secrets.SECRET_PORT }} ${{ secrets.SECRET_SERVER }} "cd /project/Swissdle
&& git pull origin main
&& cd backend-laravel && composer install
&& cd ../frontend-vue && npm install && npm run build"