-
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
cea6e8e
commit b9832ea
Showing
1 changed file
with
16 additions
and
10 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 |
---|---|---|
|
@@ -14,16 +14,19 @@ jobs: | |
known_hosts: ${{ secrets.IFRS_SSH_HOST }} | ||
if_key_exists: fail | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Actions from WyeWorks" | ||
- run: git remote add ifrs-frontend [email protected]:ifrscanoas/richard-burton/frontend.git | ||
- run: git subtree split -P frontend -b stage-release | ||
- run: git checkout stage-release | ||
- run: git clean -f -d | ||
- run: rm -f Dockerfile .dockerignore | ||
- run: git commit -a -m "Remove Dockerfile and .dockerignore" | ||
- run: git remote add ifrs-frontend [email protected]:ifrscanoas/richard-burton/frontend.git | ||
- run: git reset $(git commit-tree HEAD^{tree} -m "Release to Stage `TZ=America/Sao_Paulo date '+%d %b %Y %T São Paulo (UTC%Z)'`") | ||
- run: git pull --rebase ifrs-frontend stage -X theirs | ||
- run: git reset --soft ifrs-frontend/stage | ||
- run: rm -f Dockerfile .dockerignore | ||
- run: git add . -A | ||
- run: git status | ||
- run: git commit -m "Release to Stage `TZ=America/Sao_Paulo date '+%d %b %Y %T São Paulo (UTC%Z)'`" | ||
- run: git push -f ifrs-frontend stage-release | ||
|
||
DeployBackend: | ||
|
@@ -36,15 +39,18 @@ jobs: | |
known_hosts: ${{ secrets.IFRS_SSH_HOST }} | ||
if_key_exists: fail | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: export TZ=America/Sao_Paulo | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Actions from WyeWorks" | ||
- run: git remote add ifrs-backend [email protected]:ifrscanoas/richard-burton/backend.git | ||
- run: git subtree split -P backend -b stage-release | ||
- run: git checkout stage-release | ||
- run: git clean -f -d | ||
- run: rm -f Dockerfile .dockerignore | ||
- run: git commit -a -m "Remove Dockerfile and .dockerignore" | ||
- run: git remote add ifrs-backend [email protected]:ifrscanoas/richard-burton/backend.git | ||
- run: git reset $(git commit-tree HEAD^{tree} -m "Release to Stage `TZ=America/Sao_Paulo date '+%d %b %Y %T São Paulo (UTC%Z)'`") | ||
- run: git pull --rebase ifrs-backend stage -X theirs | ||
- run: git reset --soft ifrs-backend/stage | ||
- run: rm -f Dockerfile .dockerignore | ||
- run: git add . -A | ||
- run: git status | ||
- run: git commit -m "Release to Stage `TZ=America/Sao_Paulo date '+%d %b %Y %T São Paulo (UTC%Z)'`" | ||
- run: git push -f ifrs-backend stage-release |