Skip to content

Commit

Permalink
ci(deployment): add production-uk deployment (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkeerthi authored Jul 13, 2023
1 parent 70d196a commit 8efa97d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/production-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,26 @@ jobs:
git pull origin production-us
git merge --no-ff origin/${{ env.DEPLOYMENT_TYPE }} -m "merge ${{ env.DEPLOYMENT_TYPE }} in production-us"
git push origin production-us
merge-release-content-to-production-uk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Git config
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Set deployment type
run: |
echo "DEPLOYMENT_TYPE=${{ github.event.inputs.deployment-type }}" >> $GITHUB_ENV
shell: bash
- name: Merge ${{ env.DEPLOYMENT_TYPE }} into production-uk
run: |
git fetch --unshallow
git checkout production-uk
git pull origin production-uk
git merge --no-ff origin/${{ env.DEPLOYMENT_TYPE }} -m "merge ${{ env.DEPLOYMENT_TYPE }} in production-uk"
git push origin production-uk
2 changes: 1 addition & 1 deletion .github/workflows/rollback-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: echo "::set-output name=tag::$(git describe --tags --abbrev=0)"
- name: Revert to previous tag
run: |
for branch in sandbox production production-us; do
for branch in sandbox production production-us production-uk; do
git switch $branch
git fetch origin refs/tags/${{ steps.latest_tag.outputs.tag }}:refs/tags/${{ steps.latest_tag.outputs.tag }}
git revert --no-edit ${branch}..${{ steps.latest_tag.outputs.tag }}
Expand Down

0 comments on commit 8efa97d

Please sign in to comment.