Skip to content

Commit

Permalink
ci: change gitops repo for dev/stg
Browse files Browse the repository at this point in the history
  • Loading branch information
mmpetarpeshev committed Nov 19, 2023
1 parent f549200 commit b21bc2d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dev-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
ref: dev
persist-credentials: false
fetch-depth: 0
Expand All @@ -101,6 +102,6 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
repository: aeternity/gitops-apps-aelabs
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: dev
5 changes: 3 additions & 2 deletions .github/workflows/dev-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jobs:
- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
ref: dev
persist-credentials: false
fetch-depth: 0
Expand All @@ -110,6 +111,6 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
repository: aeternity/gitops-apps-aelabs
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: dev
9 changes: 5 additions & 4 deletions .github/workflows/stg-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
ref: stg
persist-credentials: false
fetch-depth: 0
Expand All @@ -98,7 +99,7 @@ jobs:
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
uses: aeternity/ae-github-actions/deploy-status@v7
with:
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.aepps.com
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com

- name: Staging PR Sync
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
Expand Down Expand Up @@ -131,12 +132,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.aepps.com
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
check_for_duplicate_msg: true

- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
repository: aeternity/gitops-apps-aelabs
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: stg
9 changes: 5 additions & 4 deletions .github/workflows/stg-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ jobs:
- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
ref: stg
persist-credentials: false
fetch-depth: 0
Expand All @@ -116,7 +117,7 @@ jobs:
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
uses: aeternity/ae-github-actions/deploy-status@v7
with:
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.aepps.com
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com

- name: Staging deploy
if: github.event_name == 'pull_request' && github.event.action == 'opened'
Expand All @@ -140,12 +141,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.aepps.com
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
check_for_duplicate_msg: true

- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
repository: aeternity/gitops-apps-aelabs
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: stg

0 comments on commit b21bc2d

Please sign in to comment.