Files
helloworld/.drone.yml
C菌 7e105a0de8
All checks were successful
continuous-integration/drone/push Build is passing
.drone.yml
2022-04-13 05:03:14 +08:00

59 lines
1017 B
YAML

---
kind: pipeline
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
pull: if-not-exists #always
image: golang:alpine
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
insecure: true
commands:
- "ls"
- 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