This commit is contained in:
parent
c0bccd0091
commit
5e59c40d17
23
.drone.yml
23
.drone.yml
@ -6,6 +6,7 @@ steps:
|
||||
|
||||
- name: docker build an publish
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_REGISTRY_TOKEN:
|
||||
from_secret: DOCKER_REGISTRY_TOKEN
|
||||
@ -17,7 +18,7 @@ steps:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- sleep 15
|
||||
# - sleep 15
|
||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
|
||||
- docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" .
|
||||
- docker push "$DOCKER_IMAGE_NAME:latest"
|
||||
@ -29,14 +30,14 @@ trigger:
|
||||
# ref:
|
||||
# - refs/tags/v.*.*.*
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
# services:
|
||||
# - name: docker
|
||||
# image: docker:dind
|
||||
# privileged: true
|
||||
# volumes:
|
||||
# - name: dockersock
|
||||
# path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
# volumes:
|
||||
# - name: dockersock
|
||||
# temp: {}
|
Loading…
Reference in New Issue
Block a user