Skip to content

Commit 8454786

Browse files
Build the docker image during CI/CD
1 parent 75ce8fa commit 8454786

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
with:
2727
account: ${{ inputs.account }}
2828
region: ${{ inputs.region }}
29-
stacks: MewlerLiquidationBotStack
29+
stacks: MewlerLiquidationBotStack

.github/workflows/pipelin.yaml renamed to .github/workflows/pipeline.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,20 @@ jobs:
2929

3030
synth:
3131
if: github.event_name == 'pull_request'
32-
name: Dry Run | Production
33-
uses: ./.github/workflows/synth.yaml
32+
name: Dry Run | Test
33+
uses: ./.github/workflows/test.yaml
3434
with:
3535
account: "730335381248"
36-
region: "ap-northeast-1"
36+
region: "ap-northeast-1"
37+
38+
build:
39+
if: github.event_name == 'pull_request'
40+
name: Build | Test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
47+
- name: Build Docker Image
48+
run: docker build -t mewler-liquidation-bot .

.github/workflows/synth.yaml renamed to .github/workflows/test.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
name: Workflow | Deploy backend
1+
name: Workflow | Test backend
22

33
on:
4-
workflow_call:
5-
inputs:
6-
account:
7-
required: true
8-
type: string
9-
default: "730335381248"
10-
region:
11-
required: true
12-
type: string
13-
default: "ap-northeast-1"
4+
workflow_call:
5+
inputs:
6+
account:
7+
required: false
8+
type: string
9+
default: "730335381248"
10+
region:
11+
required: false
12+
type: string
13+
default: "ap-northeast-1"
1414

1515
jobs:
1616
liquidator-backend:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 60
1919
steps:
20-
- name: Checkout
20+
- name: Test
2121
uses: actions/checkout@v4
2222
with:
2323
submodules: "recursive"
24-
24+
- name: Build Docker Image
25+
run: docker build -t mewler-liquidation-bot .
2526
- uses: ./.github/actions/cdk-synth
2627
with:
2728
account: ${{ inputs.account }}

0 commit comments

Comments
 (0)