Skip to content

Commit

Permalink
Merge branch '13_continuous_integration' of github.com:HE-Arc/Swissdl…
Browse files Browse the repository at this point in the history
…e into dev
  • Loading branch information
bruno.thomas committed Dec 12, 2023
2 parents 891f58b + 094341d commit cafdf97
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to Container

on:
push:
branches:
- 13_continuous_integration
- main

jobs:
deploy:
runs-on: ubuntu-latest


steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Deploy to Container
run: |
mkdir ~/.ssh
touch ~/.ssh/known_hosts
touch ~/.ssh/pkey
ssh-keyscan -p ${{ secrets.SECRET_PORT }} ${{ secrets.SECRET_HOST }} >> ~/.ssh/known_hosts
echo "${{ secrets.SECRET_PRIVATE_SSH }}" > ~/.ssh/pkey
chmod 600 ~/.ssh/pkey
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/pkey
ssh ${{ secrets.SECRET_USER }}@${{ secrets.SECRET_HOST }} -p ${{ secrets.SECRET_PORT }} "cd ./project/Swissdle && git pull origin main && cd backend-laravel && composer install && cd ../frontend-vue && npm install && npm run build"

0 comments on commit cafdf97

Please sign in to comment.