From d426c24c730ed2166a1cb6a962f9a52a212391b9 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 20 Dec 2023 09:46:21 +0100 Subject: [PATCH] push to 2.8.0 --- .gitea/workflows/container.yaml | 12 ++++++++++++ .woodpecker.yml | 11 ----------- Dockerfile => Containerfile | 6 ++++-- 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 .gitea/workflows/container.yaml delete mode 100644 .woodpecker.yml rename Dockerfile => Containerfile (86%) diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml new file mode 100644 index 0000000..e48b3fd --- /dev/null +++ b/.gitea/workflows/container.yaml @@ -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 }} diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 3a7353a..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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 diff --git a/Dockerfile b/Containerfile similarity index 86% rename from Dockerfile rename to Containerfile index 4349fe4..cad2bfb 100644 --- a/Dockerfile +++ b/Containerfile @@ -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 mkdir -p /data/attachments @@ -10,12 +10,14 @@ RUN apk --no-cache add \ gcc \ npm -ENV VERSION=v2.7.0 +ENV VERSION=v2.8.0 RUN git clone https://github.com/binwiederhier/ntfy.git WORKDIR /go/ntfy RUN git checkout "$VERSION" +ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE" + RUN make web RUN make web-build RUN make cli-linux-server