From 7c09fbc8aa42cb21841ae22fb007a15e1a3dfb77 Mon Sep 17 00:00:00 2001 From: Degreat Date: Sun, 28 Jan 2024 09:14:39 +0000 Subject: [PATCH] add pipeline for app --- .github/workflows/deploy-app.yml | 30 ++++++++++++++++++++++++++++ .github/workflows/deploy-website.yml | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/deploy-app.yml diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml new file mode 100644 index 0000000..66b46c3 --- /dev/null +++ b/.github/workflows/deploy-app.yml @@ -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://dokku@85.159.211.246:22/knust' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + # enable shell trace mode + trace: '1' \ No newline at end of file diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 214e1d6..740c1f0 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -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: