Skip to content

Commit 4eb3658

Browse files
committed
CI fixes
1 parent e5dfad2 commit 4eb3658

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ jobs:
2525
username: getlantern
2626
password: ${{ secrets.DOCKER_PASSWORD }}
2727

28-
- name: docker push
29-
uses: docker/build-push-action@v5
30-
with:
31-
context: .
32-
push: true
33-
cache-from: type=gha
34-
cache-to: type=gha,mode=max
35-
tags: |
36-
getlantern/lantern-server-manager:latest
37-
getlantern/lantern-server-manager:${{ github.sha }}
3828
- name: Run GoReleaser
3929
uses: goreleaser/goreleaser-action@v6
4030
with:

.goreleaser.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,17 @@ furies:
7171
- deb
7272
- rpm
7373

74+
75+
dockers:
76+
- image_templates:
77+
- "getlantern/sing-box-extensions:latest"
78+
- "getlantern/sing-box-extensions:{{ .Tag }}"
79+
80+
dockerhub:
81+
- images:
82+
- getlantern/sing-box-extensions
83+
username: getlantern
84+
secret_name: DOCKER_PASSWORD
85+
full_description:
86+
from_file:
87+
path: ./README.md

Dockerfile

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
2-
COPY . /go/src/github.com/getlantern/sing-box-extensions
3-
WORKDIR /go/src/github.com/getlantern/sing-box-extensions
4-
ENV CGO_ENABLED=1
5-
RUN set -ex \
6-
&& apk add git build-base \
7-
&& go build -v -trimpath -tags \
8-
"with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_clash_api" \
9-
-o /go/bin/sing-box \
10-
-ldflags "-s -w -buildid=" \
11-
./cmd/sing-box-extensions
12-
FROM alpine AS dist
13-
RUN set -ex \
14-
&& apk upgrade \
15-
&& apk add bash tzdata ca-certificates nftables \
16-
&& rm -rf /var/cache/apk/*
17-
COPY --from=builder /go/bin/sing-box /usr/local/bin/sing-box-extensions
18-
ENTRYPOINT ["sing-box-extensions"]
1+
FROM alpine:edge
2+
3+
# Set the timezone and install CA certificates
4+
RUN apk --no-cache add ca-certificates tzdata nftables
5+
6+
COPY sing-box-extensions /sing-box-extensions
7+
8+
# Set the entrypoint command
9+
ENTRYPOINT ["/sing-box-extensions", "-d", "/data", "-c", "/config.json", "run"]

0 commit comments

Comments
 (0)