Skip to content

Commit 5b76292

Browse files
committed
ci: Add docker-pr.yml workflow.
1 parent fe117ab commit 5b76292

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/docker-pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "docker: Build and push ghcr.io/zeuswpi/tap:pr-[number]"
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: docker-nightly-${{ github.ref_name }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
docker:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: docker/setup-buildx-action@v3
17+
18+
- uses: docker/login-action@v3
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ github.token }}
23+
24+
- uses: docker/build-push-action@v6
25+
with:
26+
context: .
27+
file: Dockerfile.production
28+
push: true
29+
tags: |
30+
ghcr.io/zeuswpi/tap:pr-${{ github.event.pull_request.number }}
31+
ghcr.io/zeuswpi/tap:pr-${{ github.event.pull_request.number }}-${{ github.sha }}

0 commit comments

Comments
 (0)