From b078980cbb4984f4be88deb49f7cef8016c28c82 Mon Sep 17 00:00:00 2001 From: Adrien Beaudouin <3679080+adr1enbe4udou1n@users.noreply.github.com> Date: Sat, 7 Jun 2025 11:53:37 +0200 Subject: [PATCH] add target --- .gitea/workflows/build.yaml | 8 ++++++++ Dockerfile | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5d291c2..4f75f99 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -23,5 +23,13 @@ jobs: with: context: . push: true + tartget: toolchain-musl + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + - uses: docker/build-push-action@v6 + with: + context: . + push: true + tartget: toolchain tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index 227acc7..363fe8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -210,5 +210,8 @@ RUN mkdir -p /usr/bin /usr/lib && \ ln -sT usr/bin /sbin && \ ln -sT bin /usr/sbin -FROM scratch +FROM scratch AS toolchain-musl +COPY --from=build-musl / / + +FROM scratch AS toolchain COPY --from=final / /