Files
helloworld/.drone.yml
C菌 39b727e985
Some checks failed
continuous-integration/drone/push Build is failing
.drone.yml
2022-04-13 04:36:05 +08:00

43 lines
687 B
YAML

---
kind: pipeline
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
pull: always
image: golang:alpine
commands:
- "pwd && ls"
- "make docker"
- name: buildx
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