Skip to content

Commit 0edfded

Browse files
authored
Merge pull request vignesh07#10 from vignesh07/add-docker-ci
2 parents 2e7090a + 036070b commit 0edfded

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
docker-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
# Build only (no push). If this fails, the PR breaks container builds.
20+
- name: Build Docker image
21+
uses: docker/build-push-action@v6
22+
with:
23+
context: .
24+
file: ./Dockerfile
25+
push: false
26+
tags: clawdbot-railway-template:ci
27+
cache-from: type=gha
28+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)