e27189ea32
``` [command]/opt/hostedtoolcache/goreleaser-action/2.3.2-pro/x64/goreleaser release --nightly • by using this software you agree with its EULA, available at https://goreleaser.com/eula • running goreleaser v2.3.2-pro • only configurations files on version: 2 are supported, yours is version: 0 , please update your configuration ⨯ release failed after 0s error=only configurations files on version: 2 are supported, yours is version: 0 , please update your configuration ::error::The process '/opt/hostedtoolcache/goreleaser-action/2.3.2-pro/x64/goreleaser' failed with exit code 1 ``` ``` #20 [linux/arm64 builder 2/5] RUN apk add --no-cache make git #20 CANCELED ------ > [linux/amd64 builder 5/5] RUN make clean && make build: 0.058 go clean -x -i ./... 0.061 go: go.mod requires go >= 1.22 (running go 1.21.10; GOTOOLCHAIN=local) 0.061 make: *** [Makefile:176: clean] Error 1 ------ 1 warning found (use docker --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) Dockerfile:8 -------------------- 6 | WORKDIR /opt/src/act_runner 7 | 8 | >>> RUN make clean && make build 9 | 10 | FROM alpine:3.18 -------------------- ERROR: failed to solve: process "/bin/sh -c make clean && make build" did not complete successfully: exit code: 2 ::error::buildx failed with: ERROR: failed to solve: process "/bin/sh -c make clean && make build" did not complete successfully: exit code: 2 ``` Reviewed-on: https://gitea.com/gitea/act_runner/pulls/603 Co-authored-by: Jason Song <i@wolfogre.com> Co-committed-by: Jason Song <i@wolfogre.com>
24 lines
688 B
Text
24 lines
688 B
Text
FROM golang:1.23-alpine AS builder
|
|
# Do not remove `git` here, it is required for getting runner version when executing `make build`
|
|
RUN apk add --no-cache make git
|
|
|
|
COPY . /opt/src/act_runner
|
|
WORKDIR /opt/src/act_runner
|
|
|
|
RUN make clean && make build
|
|
|
|
FROM docker:dind-rootless
|
|
USER root
|
|
RUN apk add --no-cache \
|
|
git bash supervisor
|
|
|
|
COPY --from=builder /opt/src/act_runner/act_runner /usr/local/bin/act_runner
|
|
COPY /scripts/supervisord.conf /etc/supervisord.conf
|
|
COPY /scripts/run.sh /opt/act/run.sh
|
|
COPY /scripts/rootless.sh /opt/act/rootless.sh
|
|
|
|
RUN mkdir /data \
|
|
&& chown rootless:rootless /data
|
|
|
|
USER rootless
|
|
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|