diff --git a/.woodpecker.yml b/.woodpecker.yml index 103cb72..b234ca6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,13 +2,13 @@ pipeline: publish: image: plugins/docker registry: registry.nulo.in - repo: registry.nulo.in/sutty/CHANGEME + repo: registry.nulo.in/sutty/repository tags: - ${ALPINE_VERSION} - latest build_args: - ALPINE_VERSION=${ALPINE_VERSION} - - BASE_IMAGE=registry.nulo.in/sutty/monit + - BASE_IMAGE=registry.nulo.in/sutty/sdk username: sutty secrets: - docker_password diff --git a/Dockerfile b/Dockerfile index d93a8d9..d21eb0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,12 @@ ARG ALPINE_VERSION=3.13.6 ARG BASE_IMAGE=sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " + +COPY ./build.sh /usr/local/bin/build +RUN chmod 755 /usr/local/bin/build +RUN echo 'https://alpine.sutty.nl/alpine/v3.12/sutty' >> /etc/apk/repositories +RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub +RUN apk update || true + +USER builder +ENTRYPOINT /usr/local/bin/build diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..41f87b7 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +export PATH=/usr/lib/ccache/bin:$PATH + +cd /home/builder/package + +abuild checksum +abuild -r