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" username: "sutty"
repo: "registry.nulo.in/sutty/tor" repo: "registry.nulo.in/sutty/tor"
tags: tags:
- "${ALPINE_VERSION}" - "${ALPINE_VERSION}-${SUTTY_TOR_HIDDEN_SERVICE_VERSION}"
- "latest" - "latest"
build_args: build_args:
- "SUTTY_TOR_HIDDEN_SERVICE_VERSION=${SUTTY_TOR_HIDDEN_SERVICE_VERSION}"
- "ALPINE_VERSION=${ALPINE_VERSION}" - "ALPINE_VERSION=${ALPINE_VERSION}"
- "BASE_IMAGE=registry.nulo.in/sutty/monit" - "BASE_IMAGE=registry.nulo.in/sutty/monit"
secrets: secrets:
@ -19,3 +20,5 @@ pipeline:
matrix: matrix:
ALPINE_VERSION: ALPINE_VERSION:
- "3.17.1" - "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 ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION} FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>" MAINTAINER "f <f@sutty.nl>"
ARG SUTTY_TOR_HIDDEN_SERVICE_VERSION=0.1.0
ENV SUTTY="sutty.nl" ENV SUTTY="sutty.nl"
ENV HTTP_BASIC_USER="" ENV HTTP_BASIC_USER=""
ENV HTTP_BASIC_PASSWORD="" 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 ./monit.conf /etc/monit.d/tor.conf
COPY ./torrc /etc/tor/torrc COPY ./torrc /etc/tor/torrc
COPY ./hidden_servicesd.sh /usr/local/bin/hidden_servicesd COPY ./hidden_servicesd.sh /usr/local/bin/hidden_servicesd