Compare commits

...

21 Commits

Author SHA1 Message Date
C菌
68b73dd6a5 .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-13 05:38:43 +08:00
C菌
9591f47ef3 up
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-13 05:36:14 +08:00
C菌
de80790cdb .drone.yml
Some checks failed
continuous-integration/drone/push Build was killed
2022-04-13 05:14:12 +08:00
C菌
7e105a0de8 .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-13 05:03:14 +08:00
C菌
2689deaf65 .
Some checks failed
continuous-integration/drone/push Build was killed
2022-04-13 04:57:53 +08:00
C菌
8ff3944b20 up
Some checks failed
continuous-integration/drone/push Build was killed
2022-04-13 04:56:47 +08:00
C菌
f54d599d8a .drone.yml 2022-04-13 04:54:48 +08:00
C菌
3bcb9ec38e .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-13 04:38:49 +08:00
C菌
39b727e985 .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-13 04:36:05 +08:00
C菌
90af25902c .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-13 04:33:05 +08:00
C菌
0d79137a71 .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-13 04:29:17 +08:00
C菌
be07efba59 .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-13 04:20:26 +08:00
C菌
1581a27696 .drone.yml
Some checks failed
continuous-integration/drone/push Build was killed
2022-04-13 04:05:56 +08:00
C菌
0a5afb358a up
Some checks failed
continuous-integration/drone/push Build was killed
2022-04-13 03:53:56 +08:00
C菌
804d35ed9c .drone.yaml
Some checks are pending
continuous-integration/drone/push Build is pending
2022-04-13 03:07:52 +08:00
C菌
56d35e09a3 .drone.yml
Some checks are pending
continuous-integration/drone/push Build is pending
2022-04-13 02:23:20 +08:00
C菌
84fd76293e .drone.yml 2022-04-13 02:13:58 +08:00
C菌
32f45d228f .drone.yml 2022-04-13 02:06:23 +08:00
C菌
e9eaea1869 .drone.yml 2022-04-13 02:03:58 +08:00
C菌
a6ac70ad31 .drone.yml 2022-04-13 02:00:39 +08:00
C菌
7fa71a4934 drone 2022-04-13 01:56:40 +08:00
2 changed files with 80 additions and 0 deletions

79
.drone.yml Normal file
View File

@@ -0,0 +1,79 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
pull: if-not-exists #always
image: golang
commands:
- "pwd && ls"
# - name: build docker image
# image: plugins/docker
# pull: if-not-exists
# settings:
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# dockerfile: Dockerfile
# repo: mirrors2/helloworld
# auto_tag: true
# # auto_tag_suffix: linux-arm64
# # insecure: true
# when:
# event:
# - push
# - tag
- name: dind
pull: if-not-exists #always
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker buildx build --platform linux/amd64,linux/arm64 -t mirrors2/helloworld:latest . --push
privileged: true
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: buildx
pull: if-not-exists #always
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
# registry:
repo: mirrors2/helloworld
purge: true
compress: true
platforms: linux/amd64,linux/arm64
username:
from_secret: docker_username
password:
from_secret: docker_password
# context:
dockerfile: Dockerfile
tags: latest
when:
branch:
- master
- alpine/*
event:
- tag
trigger:
branch:
- master
event:
- pull_request
- push
volumes:
- name: dockersock
host:
path: /var/run/docker.sock

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