Skip to content

Commit cd49858

Browse files
authored
Merge pull request #2 from AstrumBot/ci/pr-validation
ci: add PR validation workflow (build + verify, no push)
2 parents 78f2685 + 77866bb commit cd49858

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Verify PR Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- README.md
9+
10+
permissions:
11+
contents: read
12+
13+
env:
14+
IMAGE_NAME: astrum-agent-runtime
15+
16+
jobs:
17+
verify:
18+
name: Build and verify image
19+
runs-on: ubuntu-24.04
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Build image for verification
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: .
32+
file: ./Dockerfile
33+
load: true
34+
tags: ${{ env.IMAGE_NAME }}:pr-${{ github.event.number }}
35+
cache-from: type=gha
36+
cache-to: type=gha,mode=max
37+
38+
- name: Verify runtime
39+
run: docker run --rm "${{ env.IMAGE_NAME }}:pr-${{ github.event.number }}" verify-runtime

0 commit comments

Comments
 (0)