.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 arch: arm64
steps: steps:
- name: build - name: build
pull: always pull: if-not-exists #always
image: golang:alpine image: golang:alpine
commands: commands:
- "pwd && ls" - "pwd && ls"
- "make docker" - "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 - name: buildx
pull: always pull: if-not-exists #always
image: thegeeklab/drone-docker-buildx image: thegeeklab/drone-docker-buildx
privileged: true privileged: true
settings: settings:
@@ -41,4 +55,32 @@ trigger:
- master - master
event: event:
- pull_request - 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"