Skip to content

Commit

Permalink
Add workflow to deploy to IFRS
Browse files Browse the repository at this point in the history
Signed-off-by: Andrés Vidal <[email protected]>
  • Loading branch information
andres-vidal committed Nov 7, 2023
1 parent 6a33c99 commit 32a80d7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy-to-ifrs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy to IFRS
on:
push:
branches:
- main
jobs:
DeployFrontend:
runs-on: ubuntu-latest
env:
IFRS_GITLAB_SSH_KEY: ${{ secrets.IFRS_GITLAB_SSH_KEY }}
IFRS_GITLAB_FRONTEND_REPO_URL: ${{ secrets.IFRS_GITLAB_FRONTEND_REPO_URL }}
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.IFRS_GITLAB_SSH_KEY }}
known_hosts: ${{ secrets.IFRS_GITLAB_HOST_KEY }}
if_key_exists: fail
- uses: actions/checkout@v3
- run: git subtree split -P frontend -b stage-release
- run: git checkout stage-release
- run: git reset --hard
- run: git remote add ifrs [email protected]:ifrscanoas/richard-burton/frontend.git
- run: git push -f ifrs stage-release

DeployBackend:
runs-on: ubuntu-latest
env:
IFRS_GITLAB_SSH_KEY: ${{ secrets.IFRS_GITLAB_SSH_KEY }}
IFRS_GITLAB_BACKEND_REPO_URL: ${{ secrets.IFRS_GITLAB_BACKEND_REPO_URL }}
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.IFRS_GITLAB_SSH_KEY }}
known_hosts: ${{ secrets.IFRS_GITLAB_HOST_KEY }}
if_key_exists: fail
- uses: actions/checkout@v3
- run: git subtree split -P backend -b stage-release
- run: git checkout stage-release
- run: git reset --hard
- run: git remote add ifrs [email protected]:ifrscanoas/richard-burton/backend.git
- run: git push -u ifrs stage-release

0 comments on commit 32a80d7

Please sign in to comment.