-
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 7416cfb
Showing
1 changed file
with
28 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,25 @@ 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 fetch ifrs-frontend | ||
- 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 reset --soft $(git rev-list --max-parents=0 stage-release) | ||
- run: git rm --cached Dockerfile .dockerignore | ||
- run: git add . -A | ||
- run: git commit -m "Temporary Commit" | ||
- run: git diff ifrs-frontend/stage > changes.diff | ||
- run: git pull --rebase ifrs-frontend stage -X theirs | ||
- run: git apply --reject changes.diff || echo "Patch partially applied with .rej files generated." && cat *.rej | ||
- run: git add . -A | ||
- run: git restore --staged Dockerfile .dockerignore .gitlab-ci.yml .ci *.rej *.diff **/**/.gitkeep | ||
- run: git status | ||
- run: git commit --amend "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 +45,24 @@ 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 fetch ifrs-backend | ||
- 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 reset --soft $(git rev-list --max-parents=0 stage-release) | ||
- run: git rm --cached Dockerfile .dockerignore | ||
- run: git add . -A | ||
- run: git commit -m "Temporary Commit" | ||
- run: git diff ifrs-backend/stage > changes.diff | ||
- run: git pull --rebase ifrs-backend stage -X theirs | ||
- run: git apply --reject changes.diff || echo "Patch partially applied with .rej files generated." && cat *.rej | ||
- run: git add . -A | ||
- run: git restore --staged Dockerfile .dockerignore .gitlab-ci.yml .ci *.rej *.diff **/**/.gitkeep | ||
- run: git status | ||
- run: git commit --amend "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 |