-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrés Vidal <[email protected]>
- Loading branch information
1 parent
6a33c99
commit 7dce850
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |