Skip to content

Commit

Permalink
add pipeline for app
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmann committed Jan 28, 2024
1 parent 6764866 commit 7c09fbc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy App (knust)

on:
push:
branches:
- master
paths:
- 'client/**'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Push to dokku
uses: dokku/github-action@master
# enable verbose ssh output
env:
GIT_SSH_COMMAND: 'ssh -vvv'
with:
# enable verbose git output
git_push_flags: '-vvv'
git_remote_url: 'ssh://[email protected]:22/knust'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
# enable shell trace mode
trace: '1'
2 changes: 2 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ master ]
paths:
- 'website/**'
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

Expand Down

0 comments on commit 7c09fbc

Please sign in to comment.