Merge branch 'antifascista' of https://gitea.nulo.in/Sutty/containers-skel into antifascista
Some checks failed
continuous-integration/woodpecker the build failed

This commit is contained in:
f 2021-10-23 13:34:45 -03:00
commit 7321da79cc
3 changed files with 40 additions and 4 deletions

11
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,11 @@
stages:
- build
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE:latest

22
.woodpecker.yml Normal file
View file

@ -0,0 +1,22 @@
pipeline:
publish:
image: plugins/docker
registry: registry.nulo.in
repo: registry.nulo.in/sutty/syncthing
tags:
- ${ALPINE_VERSION}
- latest
build_args:
- ALPINE_VERSION=${ALPINE_VERSION}
- BASE_IMAGE=registry.nulo.in/sutty/monit
username: sutty
secrets:
- docker_password
when:
branch: antifascista
event: push
matrix:
ALPINE_VERSION:
- 3.13.6
- 3.14.2

View file

@ -1,13 +1,16 @@
FROM alpine:latest AS build ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>" MAINTAINER "f <f@sutty.nl>"
COPY ./syncthing_start.sh /usr/local/bin/syncthing_start COPY ./syncthing_start.sh /usr/local/bin/syncthing_start
RUN chmod 755 /usr/local/bin/syncthing_start RUN chmod 755 /usr/local/bin/syncthing_start
FROM sutty/monit:latest FROM ${BASE_IMAGE}:${ALPINE_VERSION}
ARG ALPINE_VERSION
# Syncthing runs with the same uid and gid for Sutty so ownership is # Syncthing runs with Sutty's uid and gid so ownership is kept, because
# kept, since ST doesn't sync these. # they are not synced.
RUN addgroup -g 82 -S syncthing RUN addgroup -g 82 -S syncthing
RUN adduser -s /bin/sh -G syncthing -D -u 1000 -h /home/syncthing syncthing RUN adduser -s /bin/sh -G syncthing -D -u 1000 -h /home/syncthing syncthing