This commit is contained in:
parent
68d3fbdc9a
commit
68f8a8b192
16
.drone.yml
16
.drone.yml
@ -13,7 +13,11 @@ steps:
|
|||||||
from_secret: DOCKER_IMAGE_NAME
|
from_secret: DOCKER_IMAGE_NAME
|
||||||
DOCKER_REGISTRY_USER:
|
DOCKER_REGISTRY_USER:
|
||||||
from_secret: DOCKER_REGISTRY_USER
|
from_secret: DOCKER_REGISTRY_USER
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
commands:
|
commands:
|
||||||
|
- sleep 5
|
||||||
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
|
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
|
||||||
- docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" .
|
- docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" .
|
||||||
- docker push "$DOCKER_IMAGE_NAME:latest"
|
- docker push "$DOCKER_IMAGE_NAME:latest"
|
||||||
@ -24,3 +28,15 @@ trigger:
|
|||||||
- main
|
- main
|
||||||
# ref:
|
# ref:
|
||||||
# - refs/tags/v.*.*.*
|
# - refs/tags/v.*.*.*
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:20.10.22-dind-alpine3.17
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
temp: {}
|
Loading…
Reference in New Issue
Block a user