Skip to content

Commit 98a5c62

Browse files
authored
Merge pull request #26 from import-ai/deploy/webhook
Update ci.yaml
2 parents 6c0e250 + 9ffb40c commit 98a5c62

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v3
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Build
20+
uses: docker/build-push-action@v6
21+
with:
22+
context: .
23+
push: false
24+
tags: app:test
25+
platforms: |
26+
linux/amd64
27+
linux/arm64

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
docker:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- name: Checkout
18+
uses: actions/checkout@v4
1819

1920
- name: Docker meta
2021
id: meta
@@ -46,8 +47,14 @@ jobs:
4647
uses: docker/build-push-action@v6
4748
with:
4849
context: .
50+
push: true
4951
tags: ${{ steps.meta.outputs.tags }}
5052
labels: ${{ steps.meta.outputs.labels }}
5153
platforms: |
5254
linux/amd64
5355
linux/arm64
56+
57+
- name: Webhook
58+
if: github.event_name == 'push'
59+
run: |
60+
curl "${{ secrets.DEV_WEBHOOK_URL }}" -H "Authorization: Bearer ${{ secrets.DEV_WEBHOOK_API_KEY }}"

0 commit comments

Comments
 (0)