Compare commits
16 Commits
84fd76293e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68b73dd6a5 | ||
|
|
9591f47ef3 | ||
|
|
de80790cdb | ||
|
|
7e105a0de8 | ||
|
|
2689deaf65 | ||
|
|
8ff3944b20 | ||
|
|
f54d599d8a | ||
|
|
3bcb9ec38e | ||
|
|
39b727e985 | ||
|
|
90af25902c | ||
|
|
0d79137a71 | ||
|
|
be07efba59 | ||
|
|
1581a27696 | ||
|
|
0a5afb358a | ||
|
|
804d35ed9c | ||
|
|
56d35e09a3 |
59
.drone.yml
59
.drone.yml
@@ -1,15 +1,49 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
steps:
|
steps:
|
||||||
# - name: build
|
- name: build
|
||||||
# image: golang:latest
|
pull: if-not-exists #always
|
||||||
# commands:
|
image: golang
|
||||||
# - "pwd"
|
commands:
|
||||||
# - "cd helloworld"
|
- "pwd && ls"
|
||||||
|
# - name: build docker image
|
||||||
- name: latest
|
# 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
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@@ -29,10 +63,17 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
- alpine/*
|
- alpine/*
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user