.drone.yml

This commit is contained in:
C菌
2022-04-13 04:54:48 +08:00
parent 3bcb9ec38e
commit f54d599d8a

View File

@@ -6,14 +6,28 @@ platform:
arch: arm64
steps:
- name: build
pull: always
pull: if-not-exists #always
image: golang:alpine
commands:
- "pwd && ls"
- "make docker"
- name: build docker image
image: plugins/docker
pull: if-not-exists
settings:
auto_tag: true
insecure: true
dockerfile: Dockerfile
repo: mirrors2/helloworld
username:
from_secret: docker_username
password:
from_secret: docker_password
commands:
- "ls"
- name: buildx
pull: always
pull: if-not-exists #always
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
@@ -41,4 +55,32 @@ trigger:
- master
event:
- pull_request
- push
- push
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
pull: if-not-exists #always
image: golang:alpine
commands:
- "pwd && ls"
- "make docker"
- name: build docker image
image: plugins/docker
pull: if-not-exists
settings:
auto_tag: true
insecure: true
dockerfile: Dockerfile
repo: mirrors2/helloworld
username:
from_secret: docker_username
password:
from_secret: docker_password
commands:
- "ls"