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 6, 2023
1 parent 6a33c99 commit 7dce850
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-to-ifrs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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:
- uses: actions/checkout@v3
- run: touch ~/.ssh/.id_rsa
- run: echo $IFRS_GITLAB_SSH_KEY >> ~/.ssh./.id_rsa
- run: ssh-add ~/.ssh/.id_rsa
- run: git subtree split -P frontend -b gitlab-ifrs/frontend
- run: git checkout gitlab-ifrs/frontend
- run: git reset --hard
- run: git push -f $IFRS_GITLAB_FRONTEND_REPO_URL 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:
- uses: actions/checkout@v3
- run: touch ~/.ssh/.id_rsa
- run: echo $IFRS_GITLAB_SSH_KEY >> ~/.ssh./.id_rsa
- run: ssh-add ~/.ssh/.id_rsa
- run: git subtree split -P backend -b gitlab-ifrs/backend
- run: git checkout gitlab-ifrs/backend
- run: git reset --hard
- run: git push -f $IFRS_GITLAB_BACKEND_REPO_URL stage-release

0 comments on commit 7dce850

Please sign in to comment.