This commit is contained in:
C菌
2022-04-13 01:56:40 +08:00
parent 9631ecf68b
commit 7fa71a4934
2 changed files with 43 additions and 0 deletions

42
.drone.yml Normal file
View File

@@ -0,0 +1,42 @@
---
kind: pipeline
name: default
steps:
- name: build
image: golang:latest
commands:
- "pwd"
- "cd helloworld"
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: mirrors2/helloworld
context: helloworld
dockerfile: helloworld/Dockerfile
tags:
- latest
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
trigger:
branch:
- master
event:
- pull_request
- push

View File

@@ -29,6 +29,7 @@ cleand:
docker rmi $(docker images |grep none|awk '{print $3}') -f
docker rm $(docker ps -aq)
# docker rm $(docker ps -a |grep -v Up)
# docker image prune -f
.PHONY: all
# generate all