From 545ba48f4adb9715e02f277a1b7ee7bacab50e5f Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 17 Aug 2024 17:56:12 +0100 Subject: [PATCH] test with go install --- .forgejo/actions/tests/Dockerfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.forgejo/actions/tests/Dockerfile b/.forgejo/actions/tests/Dockerfile index 2c92ef4..ac36f20 100644 --- a/.forgejo/actions/tests/Dockerfile +++ b/.forgejo/actions/tests/Dockerfile @@ -1,14 +1,6 @@ # syntax=docker/dockerfile:1 -FROM golang:1.23.0 AS builder +FROM golang:1.23.0 -RUN git clone https://github.com/magefile/mage \ - && cd mage \ - && git checkout v1.15.0 \ - && go run bootstrap.go - - -FROM golang:1.23.0-alpine - -COPY --from=builder /go/bin/mage /go/bin/mage +RUN go install github.com/magefile/mage@v1.15.0 ENTRYPOINT ["mage"]