From 84fd76293ed7b6913c5d17f38b589f0f62b08ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=E8=8F=8C?= Date: Wed, 13 Apr 2022 02:13:58 +0800 Subject: [PATCH] .drone.yml --- .drone.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 03ae2b8..687b2f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,20 +9,26 @@ steps: # - "pwd" # - "cd helloworld" -- name: docker - image: plugins/docker +- name: latest + 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 - repo: mirrors2/helloworld - commands: - - "pwd && ls" - # context: helloworld + # context: dockerfile: Dockerfile - tags: - - latest + tags: latest + when: + branch: + - master + - alpine/* trigger: branch: