mirror of
https://github.com/drone-plugins/github-actions
synced 2024-11-15 02:56:25 +01:00
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
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates curl bash
|
RUN apk add --no-cache ca-certificates curl
|
||||||
RUN curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | bash -s v0.2.24
|
RUN curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sh -s v0.2.24
|
||||||
|
|
||||||
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"]
|
Loading…
Reference in New Issue
Block a user