From 418c3a9f3ac9b26509b89de81b1d4f14649ae1d9 Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Mon, 27 Sep 2021 11:01:36 +0530 Subject: [PATCH] added yml --- .drone.yml | 22 ++++++++++++++++++++++ docker/Dockerfile.linux.amd64 | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f16d19b --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index e937d4f..0380593 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -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"] \ No newline at end of file