Merge branch 'master' into antifascista

This commit is contained in:
f 2021-11-16 10:14:19 -03:00
commit fd56ca4d4c
3 changed files with 20 additions and 2 deletions

View file

@ -2,13 +2,13 @@ pipeline:
publish: publish:
image: plugins/docker image: plugins/docker
registry: registry.nulo.in registry: registry.nulo.in
repo: registry.nulo.in/sutty/CHANGEME repo: registry.nulo.in/sutty/repository
tags: tags:
- ${ALPINE_VERSION} - ${ALPINE_VERSION}
- latest - latest
build_args: build_args:
- ALPINE_VERSION=${ALPINE_VERSION} - ALPINE_VERSION=${ALPINE_VERSION}
- BASE_IMAGE=registry.nulo.in/sutty/monit - BASE_IMAGE=registry.nulo.in/sutty/sdk
username: sutty username: sutty
secrets: secrets:
- docker_password - docker_password

View file

@ -2,3 +2,12 @@ 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>"
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

9
build.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
export PATH=/usr/lib/ccache/bin:$PATH
cd /home/builder/package
abuild checksum
abuild -r