use new way to get architecture
This commit is contained in:
parent
7d2cc36d5f
commit
cd164794ca
@ -6,15 +6,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
id: build-image
|
id: build-image
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
image: docker.io/thallian/alpine-s6
|
image: docker.io/thallian/alpine-s6
|
||||||
tags: ${{ gitea.ref_name }} ${{ gitea.sha }} latest
|
tags: ${{ gitea.ref_name }} ${{ gitea.sha }} latest
|
||||||
archs: amd64
|
archs: amd64, arm64
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
./Containerfile
|
./Containerfile
|
||||||
- name: Log in to Dockerhub
|
- name: Log in to Dockerhub
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
FROM docker.io/alpine:3.19 AS builder
|
FROM docker.io/alpine:3.19 AS builder
|
||||||
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
||||||
|
|
||||||
ARG TARGET_ARCH=x86_64
|
|
||||||
|
|
||||||
ENV S6_OVERLAY_VERSION=v3.1.6.2
|
ENV S6_OVERLAY_VERSION=v3.1.6.2
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
@ -16,8 +14,8 @@ RUN git clone https://github.com/just-containers/s6-overlay.git /src
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN git checkout "$S6_OVERLAY_VERSION"
|
RUN git checkout "$S6_OVERLAY_VERSION"
|
||||||
|
|
||||||
RUN make ARCH=$TARGET_ARCH-linux-musl -j4
|
RUN make ARCH=$(arch)-linux-musl -j4
|
||||||
RUN mv /src/output/rootfs-overlay-${TARGET_ARCH}-linux-musl /src/output/rootfs-overlay-arch
|
RUN mv /src/output/rootfs-overlay-$(arch)-linux-musl /src/output/rootfs-overlay-arch
|
||||||
|
|
||||||
|
|
||||||
FROM docker.io/alpine:3.19
|
FROM docker.io/alpine:3.19
|
||||||
|
Loading…
Reference in New Issue
Block a user