forked from Ivasoft/github-actions
This commit is contained in:
@@ -2,6 +2,14 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: build
|
||||||
image: golang:1.19
|
image: golang:1.19
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ FROM docker:dind
|
|||||||
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates curl
|
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/
|
ADD release/linux/amd64/plugin /bin/
|
||||||
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/plugin"]
|
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/plugin"]
|
||||||
Reference in New Issue
Block a user