Skip to content

Commit

Permalink
Using docker volume mount in drone steps
Browse files Browse the repository at this point in the history
  • Loading branch information
orangedeng committed May 19, 2022
1 parent 05c0780 commit 53b5dde
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ steps:
settings:
build_args:
- ARCH=amd64
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
tag: latest
password:
Expand All @@ -74,18 +73,17 @@ steps:
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
event:
- push
volumes:
- name: docker
path: /var/run/docker.sock

- name: docker-publish
image: plugins/docker
settings:
build_args:
- ARCH=amd64
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
password:
from_secret: docker_password
Expand All @@ -96,6 +94,9 @@ steps:
when:
event:
- tag
volumes:
- name: docker
path: /var/run/docker.sock

volumes:
- name: docker
Expand All @@ -106,3 +107,5 @@ trigger:
event:
exclude:
- promote
branch:
- master

0 comments on commit 53b5dde

Please sign in to comment.