Skip to content

Commit 9dbd3f1

Browse files
committed
Adjust to workflows into worker regions
1 parent ff49e56 commit 9dbd3f1

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/publish-new-build.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,44 @@ jobs:
9595
git tag $TAG_NAME
9696
git push origin $TAG_NAME
9797
98-
trigger-production-deploy:
98+
trigger-production-scheduler-deploy:
99+
needs:
100+
- code-check
101+
- bump-version
102+
- build-and-publish
103+
runs-on: ubuntu-latest
104+
if: ${{ github.ref_name == 'main' && inputs.version != '' && inputs.deploy-to-production == true }}
105+
steps:
106+
- name: Trigger production scheduler deploy
107+
uses: neti-filplus-infra/filplus-deploy-action@main
108+
with:
109+
version: ${{ inputs.version }}
110+
environment: production
111+
ecr-repository: filplus-provider-benchmark
112+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_IMAGE_DEPLOYER }}
113+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_IMAGE_DEPLOYER }}
114+
aws-region: us-east-1
115+
116+
trigger-production-workers-deploy:
99117
needs:
100118
- code-check
101119
- bump-version
102120
- build-and-publish
103121
strategy:
104122
matrix:
105-
repository:
106-
- filplus-provider-benchmark
107-
- filplus-provider-benchmark-worker
123+
region:
124+
- us-east-1
125+
- ap-southeast-1
126+
- ap-east-1
108127
runs-on: ubuntu-latest
109128
if: ${{ github.ref_name == 'main' && inputs.version != '' && inputs.deploy-to-production == true }}
110129
steps:
111-
- name: Trigger ${{ matrix.repository }} production deploy
130+
- name: Trigger ${{ matrix.region }} production workers deploy
112131
uses: neti-filplus-infra/filplus-deploy-action@main
113132
with:
114133
version: ${{ inputs.version }}
115134
environment: production
116-
ecr-repository: ${{ matrix.repository }}
135+
ecr-repository: filplus-provider-benchmark-worker
117136
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_IMAGE_DEPLOYER }}
118137
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_IMAGE_DEPLOYER }}
119-
aws-region: us-east-1
138+
aws-region: ${{ matrix.region }}

0 commit comments

Comments
 (0)