Something went wrong. Try again.
/x/perimental project monorepo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294VERSION 0.8FROM debian:bookwormWORKDIR /appruntime: FROM debian:bookworm WORKDIR /app RUN apt-get update && apt-get install -y \ curl \ wget \ unzip \ ca-certificates \ && rm -rf /var/lib/apt/lists/* \ && cp /etc/ssl/certs/ca-certificates.crt . SAVE ARTIFACT ca-certificates.crtdeps: FROM golang:1.24 WORKDIR /app COPY go.mod go.sum ./ RUN go mod download SAVE ARTIFACT go.modbuild: FROM +deps WORKDIR /app ARG PROGRAM=anubis ARG GOOS=linux ARG GOARCH=amd64 ARG GOARM COPY . . ARG VERSION=$(git describe --tags --always --dirty) RUN --mount=type=cache,target=/root/.cache go build -o /app/bin/${PROGRAM} -ldflags="-X within.website/x.Version=${VERSION}" ./cmd/${PROGRAM} SAVE ARTIFACT binship: ARG PROGRAM=anubis ARG GOARCH FROM --platform=linux/${GOARCH} debian:bookworm COPY --platform=${TARGETPLATFORM} (+runtime/ca-certificates.crt) /etc/ssl/certs/ca-certificates.crt COPY --platform=${TARGETPLATFORM} (+build/bin/${PROGRAM} --GOARCH=${GOARCH} --PROGRAM=${PROGRAM}) /app/bin/${PROGRAM} LABEL org.opencontainers.image.source="https://github.com/Xe/x"everything: FROM +deps COPY . . ARG VERSION=$(git describe --tags --always --dirty) RUN mkdir -p bin RUN --mount=type=cache,target=/root/.cache GOBIN=$(pwd)/bin go install -ldflags="-X within.website/x.Version="${VERSION} ./... SAVE ARTIFACT binaerial: BUILD +ship --PROGRAM=aerial --GOARCH=amd64amano: BUILD +ship --PROGRAM=amano --GOARCH=amd64aura: FROM +runtime RUN apt-get update && apt-get install -y \ streamripper vim jq \ && rm -rf /var/lib/apt/lists/* COPY +everything/bin/aura /app/bin/aura CMD ["/app/bin/aura"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/aura:latestfuture-sight: FROM +runtime COPY +everything/bin/future-sight /app/bin/future-sight CMD ["/app/bin/future-sight"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/future-sight:latesthdrwtch: FROM +runtime COPY +everything/bin/hdrwtch /app/bin/hdrwtch CMD ["/app/bin/hdrwtch", "--port=8080", "--database-loc=/data/hdrwtch.db"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/hdrwtch:latesthlang: FROM +runtime COPY +everything/bin/hlang /app/bin/hlang CMD ["/app/bin/hlang", "--port=8080"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/hlang:latesthttpdebug: FROM +ship --PROGRAM=httpdebug --GOARCH=amd64 CMD ["/app/bin/httpdebug"] SAVE IMAGE --push ghcr.io/xe/x/httpdebug:latestmi: FROM +runtime COPY +everything/bin/mi /app/bin/mi CMD ["/app/bin/mi"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/mi:latestmimi: FROM +runtime RUN apt-get update && apt-get install -y \ imagemagick \ && rm -rf /var/lib/apt/lists/* COPY +everything/bin/mimi /app/bin/mimi CMD ["/app/bin/mimi"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/mimi:latestrelayd: FROM +runtime COPY +everything/bin/relayd /app/bin/relayd CMD ["/app/bin/relayd"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/relayd:latestreverseproxyd: BUILD +ship --PROGRAM=reverseproxyd --GOARCH=amd64sapientwindex: FROM +runtime COPY +everything/bin/sapientwindex /app/bin/sapientwindex CMD ["/app/bin/sapientwindex"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/sapientwindex:lateststealthmountain: FROM +runtime COPY +everything/bin/stealthmountain /app/bin/stealthmountain CMD ["/app/bin/stealthmountain"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/stealthmountain:lateststickers: FROM +runtime COPY +everything/bin/stickers /app/bin/stickers CMD ["/app/bin/stickers"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/stickers:latesttodayinmarch2020: FROM +runtime COPY +everything/bin/todayinmarch2020 /app/bin/todayinmarch2020 CMD ["/app/bin/todayinmarch2020", "--port=8080"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/todayinmarch2020:latestuncle-ted: FROM +runtime COPY +everything/bin/uncle-ted /app/bin/uncle-ted CMD ["/app/bin/uncle-ted"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/uncle-ted:latestwithin-website: FROM +runtime COPY +everything/bin/within.website /app/bin/within.website CMD ["/app/bin/within.website", "--port=8080"] LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/within-website:latestxedn-static: RUN apt-get update && apt-get install -y \ tar \ gzip \ wget \ curl \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /app/static RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.69.71.tgz \ && tar -xzf xeact-0.69.71.tgz \ && mkdir -p /app/static/pkg/xeact/0.69.71 \ && cp -r package/* /app/static/pkg/xeact/0.69.71 \ && rm -rf xeact-0.69.71.tgz package RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.70.0.tgz \ && tar -xzf xeact-0.70.0.tgz \ && mkdir -p /app/static/pkg/xeact/0.70.0 \ && cp -r package/* /app/static/pkg/xeact/0.70.0 \ && rm -rf xeact-0.70.0.tgz package RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.71.0.tgz \ && tar -xzf xeact-0.71.0.tgz \ && mkdir -p /app/static/pkg/xeact/0.71.0 \ && cp -r package/* /app/static/pkg/xeact/0.71.0 \ && rm -rf xeact-0.71.0.tgz package RUN mkdir -p /app/static/css /app/static/pkg/iosevka RUN wget https://cdn.xeiaso.net/file/christine-static/dl/iosevka-iaso.tgz \ && (cd /app/static/pkg/iosevka && tar -xzf /app/iosevka-iaso.tgz) \ && ln -s /app/static/pkg/iosevka /app/static/css/iosevka \ && rm -f /iosevka-iaso.tgz COPY ./xess/dist/*.css /app/static/pkg/xess/ COPY ./xess/xess.css /app/static/css/xess.css COPY ./xess/xess.css /app/static/pkg/xess/xess.css COPY ./xess/static/podkova.css /app/static/pkg/podkova/family.css COPY ./xess/static/podkova.woff2 /app/static/pkg/podkova/podkova.woff2 RUN ln -s /app/static/pkg/podkova /app/static/css/podkova SAVE ARTIFACT /app/staticxedn: FROM +runtime COPY +everything/bin/xedn /app/bin/xedn COPY +everything/bin/uplodr /app/bin/uplodr COPY +xedn-static/static /app/static CMD ["/app/bin/xedn"] ENV XEDN_STATIC=/app ENV UPLODR_BINARY=/app/bin/uplodr LABEL org.opencontainers.image.source="https://github.com/Xe/x" SAVE IMAGE --push ghcr.io/xe/x/xedn:latestall: BUILD --pass-args --platform=linux/amd64 +aerial BUILD --pass-args --platform=linux/amd64 +amano BUILD --pass-args --platform=linux/amd64 +aura BUILD --pass-args --platform=linux/amd64 +future-sight BUILD --pass-args --platform=linux/amd64 +hdrwtch BUILD --pass-args --platform=linux/amd64 +hlang BUILD --pass-args --platform=linux/amd64 +httpdebug BUILD --pass-args --platform=linux/amd64 +mi BUILD --pass-args --platform=linux/amd64 +mimi BUILD --pass-args --platform=linux/amd64 +relayd BUILD --pass-args --platform=linux/amd64 +reverseproxyd BUILD --pass-args --platform=linux/amd64 +sapientwindex BUILD --pass-args --platform=linux/amd64 +stealthmountain BUILD --pass-args --platform=linux/amd64 +stickers BUILD --pass-args --platform=linux/amd64 +todayinmarch2020 BUILD --pass-args --platform=linux/amd64 +uncle-ted BUILD --pass-args --platform=linux/amd64 +within-website BUILD --pass-args --platform=linux/amd64 +xedn BUILD --pass-args --platform=linux/amd64 ./kube/alrest/staticsites/caddy1+all