From f54d599d8a76e9be7ab423f4448a03a2df716db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=E8=8F=8C?= Date: Wed, 13 Apr 2022 04:54:48 +0800 Subject: [PATCH] .drone.yml --- .drone.yml | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index c9d07ad..e9c27cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file + - 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"