Commit 608aa24 1 parent da91cab commit 608aa24 Copy full SHA for 608aa24
File tree 4 files changed +16
-9
lines changed
4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 15
15
goreleaser :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
+ - uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+ - uses : docker/setup-qemu-action@v3
22
+ - uses : docker/setup-buildx-action@v3
18
23
- uses : docker/login-action@v2
19
24
with :
20
25
registry : ghcr.io
24
29
with :
25
30
username : ${{ secrets.DOCKER_USERNAME }}
26
31
password : ${{ secrets.DOCKER_PASSWORD }}
27
- - uses : actions/checkout@v3
28
- with :
29
- fetch-depth : 0
30
32
- run : git fetch --force --tags
31
33
- uses : actions/setup-go@v4
32
34
with :
35
37
with :
36
38
install-only : true
37
39
version : latest
38
- - uses : goreleaser/goreleaser-action@v4
40
+ - uses : goreleaser/goreleaser-action@v5
39
41
with :
40
42
distribution : goreleaser
41
43
version : latest
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ dockers:
100
100
- image_templates :
101
101
- ' shurco/litecart:v{{ .Version }}-amd64'
102
102
- ' ghcr.io/shurco/litecart:v{{ .Version }}-amd64'
103
- dockerfile : Dockerfile
103
+ dockerfile : Dockerfile.goreleaser
104
104
use : buildx
105
105
build_flag_templates :
106
106
- ' --pull'
@@ -119,7 +119,7 @@ dockers:
119
119
- image_templates :
120
120
- ' shurco/litecart:v{{ .Version }}-arm64'
121
121
- ' ghcr.io/shurco/litecart:v{{ .Version }}-arm64'
122
- dockerfile : Dockerfile
122
+ dockerfile : Dockerfile.goreleaser
123
123
use : buildx
124
124
build_flag_templates :
125
125
- ' --pull'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM golang:alpine AS certs
2
+ RUN apk add --no-cache ca-certificates && update-ca-certificates 2>/dev/null || true
3
+
4
+ FROM scratch
5
+ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
6
+ COPY litecart /
7
+ ENTRYPOINT ["/litecart"]
8
+ CMD ["serve"]
You can’t perform that action at this time.
0 commit comments