.drone.yml
This commit is contained in:
48
.drone.yml
48
.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
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user