From 60c0747e24f06d663545893dac4beb5298275057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Mon, 31 Jul 2023 12:04:59 +0200 Subject: [PATCH] Compile the act ourselves. --- .drone.yml | 8 ++++++++ docker/Dockerfile.linux.amd64 | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 313c266..b7050f6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,14 @@ kind: pipeline name: default steps: +- name: act + image: golang:1.19 + commands: + - cd .. && git clone -b v0.2.48 https://github.com/nektos/act.git && cd act + - export ACT_VERSION=$(git describe --tags --dirty --always | sed -e 's/^v//') + - mkdir bin + - GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$ACT_VERSION" -o bin/act main.go + - name: build image: golang:1.19 commands: diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 5804eb2..a677602 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -3,7 +3,7 @@ FROM docker:dind ENV DOCKER_HOST=unix:///var/run/docker.sock RUN apk add --no-cache ca-certificates curl -RUN curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sh -s v0.2.48 +ADD ../act/bin/act /bin/ ADD release/linux/amd64/plugin /bin/ ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/plugin"] \ No newline at end of file