forked from mirror/github.com-drone-plugins-github-actions
added yml
This commit is contained in:
parent
8123ab7679
commit
418c3a9f3a
22
.drone.yml
Normal file
22
.drone.yml
Normal file
@ -0,0 +1,22 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go test ./...
|
||||
- sh scripts/build.sh
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
repo: plugins/github-actions
|
||||
auto_tag: true
|
||||
dockerfile: docker/Dockerfile.linux.amd64
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
@ -2,8 +2,8 @@ FROM docker:dind
|
||||
|
||||
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||
|
||||
RUN apk add --no-cache ca-certificates curl bash
|
||||
RUN curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | bash -s v0.2.24
|
||||
RUN apk add --no-cache ca-certificates curl
|
||||
RUN curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sh -s v0.2.24
|
||||
|
||||
ADD release/linux/amd64/plugin /bin/
|
||||
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/plugin"]
|
Loading…
Reference in New Issue
Block a user