Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

Commit c5c6ea6

Browse files
authored
feat: update action (#1812)
1 parent 97b3720 commit c5c6ea6

2 files changed

Lines changed: 35 additions & 21 deletions

File tree

‎.github/workflows/mono-engine-deploy.yml‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,16 @@ concurrency:
2626
cancel-in-progress: true
2727

2828
jobs:
29-
deploy-mono:
29+
build:
3030
runs-on: ubuntu-latest
31-
strategy:
32-
matrix:
33-
include:
34-
- cluster: gitmega-com
35-
service: mono-engine-dev-service-xnmoxhxb
36-
- cluster: gitmono-com-mega-app
37-
service: mono-engine
3831
timeout-minutes: 30
3932
steps:
4033
- name: Checkout repository
4134
uses: actions/checkout@v4
4235

36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
4339
- name: Configure AWS Credentials
4440
uses: aws-actions/configure-aws-credentials@v4
4541
with:
@@ -59,7 +55,7 @@ jobs:
5955
REGISTRY_ALIAS: m8q5m4u3
6056
REPOSITORY: mega
6157
IMAGE_TAG: mono-0.1.0-pre-release
62-
run: |
58+
run: |
6359
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
6460
6561
IMAGE_BASE="$REGISTRY/$REGISTRY_ALIAS/$REPOSITORY"
@@ -70,6 +66,17 @@ jobs:
7066
-f ./docker/mono-engine-dockerfile \
7167
--push .
7268
69+
deploy:
70+
needs: build
71+
runs-on: ubuntu-latest
72+
strategy:
73+
matrix:
74+
include:
75+
- cluster: gitmega-com
76+
service: mono-engine-dev-service-xnmoxhxb
77+
- cluster: gitmono-com-mega-app
78+
service: mono-engine
79+
steps:
7380
- name: Force ECS redeploy
7481
run: |
7582
aws ecs update-service \

‎.github/workflows/orion-server-deploy.yml‎

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,15 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
orion-server-deploy:
19+
build:
2020
runs-on: ubuntu-latest
21-
strategy:
22-
matrix:
23-
include:
24-
- cluster: gitmega-com
25-
service: orion-server-dev-service-om0caign
26-
- cluster: gitmono-com-mega-app
27-
service: orion-server-service
2821
timeout-minutes: 10
2922
steps:
3023
- name: Checkout repository
3124
uses: actions/checkout@v4
32-
with:
33-
ref: ${{ github.event.pull_request.base.ref }}
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
3428

3529
- name: Configure AWS Credentials
3630
uses: aws-actions/configure-aws-credentials@v4
@@ -52,9 +46,22 @@ jobs:
5246
REPOSITORY: mega
5347
IMAGE_TAG: orion-server-0.1.0-pre-release
5448
run: |
55-
docker buildx build -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG -f orion-server/Dockerfile .
56-
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
49+
docker buildx build \
50+
-t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG \
51+
-f orion-server/Dockerfile \
52+
--push .
5753
54+
deploy:
55+
needs: build
56+
runs-on: ubuntu-latest
57+
strategy:
58+
matrix:
59+
include:
60+
- cluster: gitmega-com
61+
service: orion-server-dev-service-om0caign
62+
- cluster: gitmono-com-mega-app
63+
service: orion-server-service
64+
steps:
5865
- name: Force ECS redeploy
5966
run: |
6067
aws ecs update-service \

0 commit comments

Comments
 (0)