Compare commits
16 commits
Author | SHA1 | Date | |
---|---|---|---|
fe7812a229 | |||
4245bee8e4 | |||
ff1f8bda1e | |||
11fac54d37 | |||
2f3d953ff2 | |||
94413391e0 | |||
2d358be1a8 | |||
465c3ea65f | |||
6a0acef829 | |||
23d5ffd72a | |||
4b4812868e | |||
7514a43574 | |||
c7214472b0 | |||
897a20c56a | |||
d270b638e5 | |||
f1296db6c9 |
7 changed files with 75 additions and 10 deletions
41
.forgejo/workflows/build-image.yml
Normal file
41
.forgejo/workflows/build-image.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: quay.io/podman/stable:v4.9.0
|
||||
steps:
|
||||
- name: Install additional packages
|
||||
run: |
|
||||
dnf -y install git nodejs
|
||||
|
||||
- name: Setup podman
|
||||
run: |
|
||||
sudo -u podman podman login gitea.angry.im --username PeterCxy --password ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Repository Checkout
|
||||
uses: https://gitea.angry.im/actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Detect Directory Changes
|
||||
id: changed-dirs
|
||||
uses: https://gitea.angry.im/actions/changed-files@v42
|
||||
with:
|
||||
dir_names: 'true'
|
||||
dir_names_max_depth: '1'
|
||||
dir_names_exclude_current_dir: 'true'
|
||||
files_ignore: |
|
||||
.forgejo/**
|
||||
build-image.sh
|
||||
|
||||
- name: Build & Push
|
||||
if: ${{ steps.changed-dirs.all_changed_files_count != '0' }}
|
||||
env:
|
||||
ALL_CHANGED_DIRS: ${{ steps.changed-dirs.outputs.all_changed_files }}
|
||||
run: |
|
||||
for file in ${ALL_CHANGED_DIRS}; do
|
||||
echo "---- Building ${file} ----"
|
||||
sudo -u podman ./build-image.sh ${file}
|
||||
done
|
|
@ -1,4 +1,4 @@
|
|||
ARG ELEMENT_VER=v1.11.57
|
||||
ARG ELEMENT_VER=v1.11.77
|
||||
|
||||
FROM debian:11 AS builder
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Builder image
|
||||
FROM docker.io/golang:1.20-bullseye AS build
|
||||
ARG VERSION=v0.22.3
|
||||
ARG CADDY_VERSION=v2.7.6
|
||||
FROM docker.io/golang:1.24-bookworm AS build
|
||||
ARG VERSION=v0.25.1
|
||||
ARG CADDY_VERSION=v2.10.0
|
||||
ENV GOPATH /go
|
||||
|
||||
RUN apt-get install -y git && \
|
||||
|
@ -26,8 +26,8 @@ RUN strip /go/bin/caddy
|
|||
RUN test -e /go/bin/caddy
|
||||
|
||||
# Node build image
|
||||
FROM docker.io/node:19-bullseye AS build-node
|
||||
ARG UI_COMMIT=a9db179089e3ae2b417fb657a2d3da68a54b1f2d
|
||||
FROM docker.io/node:22-bookworm AS build-node
|
||||
ARG UI_COMMIT=2025.03.21
|
||||
|
||||
RUN apt-get install -y git && \
|
||||
git clone https://github.com/gurucomputing/headscale-ui /headscale-ui
|
||||
|
@ -39,7 +39,7 @@ RUN git checkout $UI_COMMIT && npm install --development && npm run build
|
|||
# Production image
|
||||
# Note that we do not use "distroless" because we actually want to have a shell in the image
|
||||
# to run app.sh (in order to perform custom initialization)
|
||||
FROM docker.io/golang:1.20-bullseye
|
||||
FROM docker.io/golang:1.24-bookworm
|
||||
|
||||
COPY --from=build /go/bin/headscale /bin/headscale
|
||||
COPY --from=build /go/bin/caddy /bin/caddy
|
||||
|
|
24
nginx-dav-ext/Dockerfile
Normal file
24
nginx-dav-ext/Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
ARG NGINX_VERSION=1.25.4
|
||||
|
||||
FROM docker.io/debian:bookworm AS builder
|
||||
|
||||
ARG NGINX_VERSION
|
||||
|
||||
RUN apt-get -y update && apt-get -y install git build-essential wget libxslt1-dev libpcre2-dev zlib1g-dev \
|
||||
&& mkdir /src && cd /src \
|
||||
&& wget -qO - https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar zxfv - \
|
||||
&& git clone https://github.com/arut/nginx-dav-ext-module.git \
|
||||
&& git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
|
||||
RUN cd /src/nginx-${NGINX_VERSION} && ./configure --with-compat \
|
||||
--with-file-aio --with-threads \
|
||||
--add-dynamic-module=../nginx-dav-ext-module \
|
||||
--add-dynamic-module=../headers-more-nginx-module \
|
||||
&& make modules
|
||||
|
||||
FROM docker.io/nginx:${NGINX_VERSION}-bookworm
|
||||
|
||||
ARG NGINX_VERSION
|
||||
|
||||
COPY --from=builder /src/nginx-${NGINX_VERSION}/objs/ngx_http_dav_ext_module.so /usr/lib/nginx/modules/
|
||||
COPY --from=builder /src/nginx-${NGINX_VERSION}/objs/ngx_http_headers_more_filter_module.so /usr/lib/nginx/modules/
|
|
@ -1,6 +1,6 @@
|
|||
FROM node:16-alpine AS builder
|
||||
|
||||
ARG SN_TAG=@standardnotes/web@3.173.23
|
||||
ARG SN_TAG=@standardnotes/web@3.195.6
|
||||
|
||||
RUN apk add git
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Used on fly.io because it does not support sidecar containers
|
||||
# The tailscale ephemeral key should be provided via the env variable TAILSCALE_KEY
|
||||
# custom tailscale control plane can be specified with TAILSCALE_SERVER
|
||||
FROM docker.io/louislam/uptime-kuma:1.21.2
|
||||
FROM docker.io/louislam/uptime-kuma:1.23.16
|
||||
# Default tailscale login server
|
||||
ENV TAILSCALE_SERVER=https://controlplane.tailscale.com
|
||||
ENV TAILSCALE_HOSTNAME=uptime-kuma
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
/usr/sbin/tailscaled -state=mem: &
|
||||
sleep 1
|
||||
tailscale up --login-server=$TAILSCALE_SERVER --authkey=$TAILSCALE_KEY --hostname=$TAILSCALE_HOSTNAME
|
||||
tailscale up --login-server=$TAILSCALE_SERVER --authkey=$TAILSCALE_KEY --hostname=$TAILSCALE_HOSTNAME &
|
||||
node /app/server/server.js
|
||||
|
|
Loading…
Add table
Reference in a new issue