Compare commits

...

27 Commits
3.17 ... main

Author SHA1 Message Date
eaa2c15342
update alpine to 3.21 and s6 to 3.2.0.2
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 48s
2024-12-10 11:35:25 +01:00
be3de2bd8f
use alpine 3.20
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 0s
2024-05-27 10:32:22 +02:00
48ad6073a1
yaml instead of yml
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 1m17s
2023-12-13 10:01:26 +01:00
b5bafe81ad
proper shared workflow path 2023-12-13 10:00:51 +01:00
965511ec23
try shared workflow 2023-12-13 09:58:49 +01:00
68892d8864
try sharedf workflow 2023-12-13 09:58:01 +01:00
2579d00255
try again 2023-12-13 01:24:26 +01:00
de9aca741a
make action config generic 2023-12-13 01:18:46 +01:00
1893984702
remove woodpecker config 2023-12-13 01:17:37 +01:00
e9158f00b8
try pushing image
Some checks failed
Build Container Image / build-container (push) Has been cancelled
2023-12-13 01:13:57 +01:00
aabc3ec759
try pushing image 2023-12-13 01:11:44 +01:00
f746df6d27
back to archs 2023-12-13 00:55:56 +01:00
5b458e14d5
use prebuilt binaries 2023-12-13 00:55:09 +01:00
e87453a975
try different names... 2023-12-13 00:34:53 +01:00
b88f286194
use platforms 2023-12-13 00:31:11 +01:00
a4748ab410
only aarch64 for testing 2023-12-13 00:24:38 +01:00
cd164794ca
use new way to get architecture 2023-12-12 23:43:00 +01:00
7d2cc36d5f
setup qemu 2023-12-12 23:29:11 +01:00
c8fc877cf3
use buildahi-latest 2023-12-12 19:56:18 +01:00
9f40c0a09c
use buildah 2023-12-12 19:34:30 +01:00
03d93c49a1
force new ubuntu 2023-12-12 19:23:21 +01:00
c1220b4cc8
use proper workflow names 2023-12-12 19:16:38 +01:00
fc77fb0628
try to build multiarch with buildah 2023-12-12 19:12:05 +01:00
231ace296d
action demo 2023-12-12 18:57:15 +01:00
659febf3a5
prepare action migration 2023-12-12 18:49:03 +01:00
85f12c672b
push to alpine 3.18 2023-05-30 10:03:38 +02:00
a1b46c61d6
push s6 to 3.1.3.0 2023-02-16 21:02:03 +01:00
4 changed files with 56 additions and 51 deletions

View File

@ -0,0 +1,12 @@
name: Build Multiarch Container Image
on: [push]
jobs:
call-reusable-workflow:
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
sha: ${{ gitea.sha }}
registry_url: ${{ secrets.REGISTRY_URL }}
registry_user: ${{ secrets.REGISTRY_USER }}
registry_pw: ${{ secrets.REGISTRY_PW }}

View File

@ -1,11 +0,0 @@
pipeline:
publish-docker-image:
image: plugins/kaniko
settings:
repo: docker.io/thallian/alpine-s6
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
dockerfile: Dockerfile
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PW

44
Containerfile Normal file
View File

@ -0,0 +1,44 @@
FROM docker.io/alpine:3.21 AS builder
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
RUN apk --no-cache add \
curl \
tar \
xz
RUN mkdir /overlay
ENV S6_OVERLAY_VERSION=v3.2.0.2
ENV S6_HASH_noarch=6dbcde158a3e78b9bb141d7bcb5ccb421e563523babbe2c64470e76f4fd02dae
ENV S6_HASH_aarch64=8b22a2eaca4bf0b27a43d36e65c89d2701738f628d1abd0cea5569619f66f785
ENV S6_HASH_x86_64=59289456ab1761e277bd456a95e737c06b03ede99158beb24f12b165a904f478
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-noarch.tar.xz
RUN echo "$S6_HASH_noarch s6-overlay-noarch.tar.xz" | sha256sum -c - || exit 1
RUN tar xf s6-overlay-noarch.tar.xz -C /overlay --strip 1
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$(arch).tar.xz
RUN eval "echo \"\${S6_HASH_$(arch)} s6-overlay-$(arch).tar.xz\" | sha256sum -c -" || exit 1
RUN tar xf s6-overlay-$(arch).tar.xz -C /overlay --strip 1
FROM docker.io/alpine:3.21
ENV LANG=en_US.UTF-8
ENV S6_KEEP_ENV=1
ENV PATH="$PATH:/command"
ENV S6_GLOBAL_PATH="$PATH"
COPY --from=builder /overlay /
RUN apk --no-cache add \
syslog-ng \
tzdata
ENV TZ=Europe/Zurich
RUN apk --no-cache upgrade --ignore alpine-baselayout
ADD /rootfs /
ENTRYPOINT ["/init"]

View File

@ -1,40 +0,0 @@
FROM docker.io/alpine:3.17 AS builder
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
ENV S6_OVERLAY_VERSION=v3.1.2.1
RUN apk --no-cache add \
git \
make \
binutils \
tar \
xz
RUN git clone https://github.com/just-containers/s6-overlay.git /src
WORKDIR /src
RUN git checkout "$S6_OVERLAY_VERSION"
RUN make ARCH=x86_64-linux-musl -j4
FROM docker.io/alpine:3.17
ENV LANG=en_US.UTF-8
ENV S6_KEEP_ENV=1
ENV PATH="$PATH:/command"
ENV S6_GLOBAL_PATH="$PATH"
COPY --from=builder /src/output/rootfs-overlay-noarch /
COPY --from=builder /src/output/rootfs-overlay-x86_64-linux-musl /
RUN apk --no-cache add \
syslog-ng \
tzdata
ENV TZ=Europe/Zurich
RUN apk --no-cache upgrade --ignore alpine-baselayout
ADD /rootfs /
ENTRYPOINT ["/init"]