Skip to content

Commit 8ecdeaf

Browse files
committed
Add CI for Docker images
1 parent 6507a63 commit 8ecdeaf

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ci-docker.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI (Docker image)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
with:
12+
submodules: 'recursive'
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v3
15+
- name: Set up buildx
16+
uses: docker/setup-buildx-action@v3
17+
- name: Build image
18+
uses: docker/build-push-action@v5
19+
with:
20+
context: .
21+
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/amd64
22+
push: false
23+
pull: true
24+
cache-from: type=gha, scope=${{ github.workflow }}
25+
cache-to: type=gha, scope=${{ github.workflow }}

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Use past tense when adding new entries; sign your name off when you add or chang
9090
* Added a property `TSPlayer.Hostile`, which gets pvp player mode. (@AgaSpace)
9191
* Fixed typo in `/gbuff`. (@sgkoishi, #2955)
9292
* Rewrite the `.dockerignore` file into a denylist. (@timschumi)
93+
* Add CI for Docker images. (@timschumi)
9394

9495
## TShock 5.2
9596
* An additional option `pvpwithnoteam` is added at `PvPMode` to enable PVP with no team. (@CelestialAnarchy, #2617, @ATFGK)

0 commit comments

Comments
 (0)