feat: install a specific version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-03-28 15:47:10 -03:00
parent 351921e1c7
commit 178e826e7b
2 changed files with 6 additions and 2 deletions

View file

@ -6,9 +6,10 @@ pipeline:
username: "sutty"
repo: "registry.nulo.in/sutty/tor"
tags:
- "${ALPINE_VERSION}"
- "${ALPINE_VERSION}-${SUTTY_TOR_HIDDEN_SERVICE_VERSION}"
- "latest"
build_args:
- "SUTTY_TOR_HIDDEN_SERVICE_VERSION=${SUTTY_TOR_HIDDEN_SERVICE_VERSION}"
- "ALPINE_VERSION=${ALPINE_VERSION}"
- "BASE_IMAGE=registry.nulo.in/sutty/monit"
secrets:
@ -19,3 +20,5 @@ pipeline:
matrix:
ALPINE_VERSION:
- "3.17.1"
SUTTY_TOR_HIDDEN_SERVICE_VERSION:
- "0.1.1"

View file

@ -2,12 +2,13 @@ ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>"
ARG SUTTY_TOR_HIDDEN_SERVICE_VERSION=0.1.0
ENV SUTTY="sutty.nl"
ENV HTTP_BASIC_USER=""
ENV HTTP_BASIC_PASSWORD=""
RUN apk add --no-cache tor sutty_tor_hidden_service daemonize
RUN apk add --no-cache tor sutty_tor_hidden_service~${SUTTY_TOR_HIDDEN_SERVICE_VERSION} daemonize
COPY ./monit.conf /etc/monit.d/tor.conf
COPY ./torrc /etc/tor/torrc
COPY ./hidden_servicesd.sh /usr/local/bin/hidden_servicesd