push to 2.8.0
This commit is contained in:
parent
4e5cea4474
commit
d426c24c73
12
.gitea/workflows/container.yaml
Normal file
12
.gitea/workflows/container.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Build Multiarch Container Image
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
call-reusable-workflow:
|
||||||
|
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
|
||||||
|
with:
|
||||||
|
repository: ${{ gitea.repository }}
|
||||||
|
ref_name: ${{ gitea.ref_name }}
|
||||||
|
sha: ${{ gitea.sha }}
|
||||||
|
registry_url: ${{ secrets.REGISTRY_URL }}
|
||||||
|
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||||
|
registry_pw: ${{ secrets.REGISTRY_PW }}
|
@ -1,11 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
publish-docker-image:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: docker.io/thallian/ntfy
|
|
||||||
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username:
|
|
||||||
from_secret: DOCKER_USER
|
|
||||||
password:
|
|
||||||
from_secret: DOCKER_PW
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/golang:1.20-alpine3.17 AS builder
|
FROM docker.io/golang:1.21-alpine3.19 AS builder
|
||||||
|
|
||||||
RUN echo "ntfy:x:2222:2222:Linux User,,,:/:/ntfy" > /passwd
|
RUN echo "ntfy:x:2222:2222:Linux User,,,:/:/ntfy" > /passwd
|
||||||
RUN mkdir -p /data/attachments
|
RUN mkdir -p /data/attachments
|
||||||
@ -10,12 +10,14 @@ RUN apk --no-cache add \
|
|||||||
gcc \
|
gcc \
|
||||||
npm
|
npm
|
||||||
|
|
||||||
ENV VERSION=v2.7.0
|
ENV VERSION=v2.8.0
|
||||||
RUN git clone https://github.com/binwiederhier/ntfy.git
|
RUN git clone https://github.com/binwiederhier/ntfy.git
|
||||||
|
|
||||||
WORKDIR /go/ntfy
|
WORKDIR /go/ntfy
|
||||||
RUN git checkout "$VERSION"
|
RUN git checkout "$VERSION"
|
||||||
|
|
||||||
|
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
|
||||||
|
|
||||||
RUN make web
|
RUN make web
|
||||||
RUN make web-build
|
RUN make web-build
|
||||||
RUN make cli-linux-server
|
RUN make cli-linux-server
|
Loading…
Reference in New Issue
Block a user