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 / /