This commit is contained in:
35
.drone.yml
35
.drone.yml
@@ -11,23 +11,23 @@ steps:
|
||||
image: golang
|
||||
commands:
|
||||
- "pwd && ls"
|
||||
- name: build docker image
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: Dockerfile
|
||||
repo: mirrors2/helloworld
|
||||
auto_tag: true
|
||||
# auto_tag_suffix: linux-arm64
|
||||
# insecure: true
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
# - name: build docker image
|
||||
# image: plugins/docker
|
||||
# pull: if-not-exists
|
||||
# settings:
|
||||
# username:
|
||||
# from_secret: docker_username
|
||||
# password:
|
||||
# from_secret: docker_password
|
||||
# dockerfile: Dockerfile
|
||||
# repo: mirrors2/helloworld
|
||||
# auto_tag: true
|
||||
# # auto_tag_suffix: linux-arm64
|
||||
# # insecure: true
|
||||
# when:
|
||||
# event:
|
||||
# - push
|
||||
# - tag
|
||||
- name: dind
|
||||
pull: if-not-exists #always
|
||||
image: docker:dind
|
||||
@@ -35,7 +35,6 @@ steps:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- make docker
|
||||
- docker buildx build --platform linux/amd64,linux/arm64 -t mirrors2/helloworld:latest . --push
|
||||
privileged: true
|
||||
settings:
|
||||
|
||||
Reference in New Issue
Block a user