Skip to content

Commit 1102282

Browse files
committed
switch to go 1.21 and add simple docker image for sync
1 parent 85a430d commit 1102282

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v4
1212
with:
13-
go-version: '1.20'
13+
go-version: '1.21'
1414
- name: Test
1515
run: make test

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ jobs:
3434
image-name: app
3535
extract-git-tag: true
3636
custom-args: --platform=linux/arm64,linux/amd64,linux/i386
37+
- uses: VaultVulp/gp-docker-action@1.6.0
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
image-name: sync
41+
extract-git-tag: true
42+
build-context: ./contrib/sync
43+
custom-args: --build-arg=GOKR_RSYNC_VERSION="0.1.0" --platform=linux/arm64,linux/amd64,linux/i386

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 as builder
1+
FROM golang:1.21 as builder
22
ADD . /src
33
RUN cd /src && CGO_ENABLED=0 go build ./cmd/whawty-auth
44

contrib/sync/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM golang:1.21 as builder
2+
ARG GOKR_RSYNC_VERSION=0.1.0
3+
RUN CGO_ENABLED=0 go install github.com/gokrazy/rsync/cmd/gokr-rsync@v${GOKR_RSYNC_VERSION} github.com/gokrazy/rsync/cmd/gokr-rsyncd@v${GOKR_RSYNC_VERSION}
4+
5+
FROM scratch
6+
COPY --from=builder /go/bin/ /

0 commit comments

Comments
 (0)