Skip to content

Commit

Permalink
Fix deployment script
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 Apr 23, 2024
1 parent cea6e8e commit 197290a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/deploy-to-ifrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
- uses: actions/checkout@v3
- 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:
Expand All @@ -39,12 +40,13 @@ jobs:
- 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

0 comments on commit 197290a

Please sign in to comment.