Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
dee1d94ae4
|
|||
|
5fe3e345c7
|
@@ -54,5 +54,5 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=gitea.jzitnik.dev/${{ steps.string_prep.outputs.owner }}/${{ steps.string_prep.outputs.repo }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=gitea.jzitnik.dev/${{ steps.string_prep.outputs.owner }}/${{ steps.string_prep.outputs.repo }}:buildcache,mode=max
|
||||||
|
|||||||
+2
-2
@@ -1,13 +1,13 @@
|
|||||||
FROM golang:1.26-alpine AS builder
|
FROM golang:1.26-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache git ca-certificates
|
RUN apk add --no-cache git ca-certificates gcc musl-dev
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -ldflags="-w -s" -o mautrix-ntfy .
|
RUN CGO_ENABLED=1 go build -ldflags="-w -s" -o mautrix-ntfy .
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user