Compare commits
21 Commits
9631ecf68b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68b73dd6a5 | ||
|
|
9591f47ef3 | ||
|
|
de80790cdb | ||
|
|
7e105a0de8 | ||
|
|
2689deaf65 | ||
|
|
8ff3944b20 | ||
|
|
f54d599d8a | ||
|
|
3bcb9ec38e | ||
|
|
39b727e985 | ||
|
|
90af25902c | ||
|
|
0d79137a71 | ||
|
|
be07efba59 | ||
|
|
1581a27696 | ||
|
|
0a5afb358a | ||
|
|
804d35ed9c | ||
|
|
56d35e09a3 | ||
|
|
84fd76293e | ||
|
|
32f45d228f | ||
|
|
e9eaea1869 | ||
|
|
a6ac70ad31 | ||
|
|
7fa71a4934 |
79
.drone.yml
Normal file
79
.drone.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user