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"