Настроил сборку
This commit is contained in:
parent
5e59c40d17
commit
31b568346a
32
.drone.yml
32
.drone.yml
@ -18,26 +18,24 @@ 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 build --no-cache -t "$DOCKER_IMAGE_NAME:latest" -t "$DOCKER_IMAGE_NAME:$DRONE_TAG" .
|
||||
- docker push "$DOCKER_IMAGE_NAME:latest"
|
||||
# - docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG"
|
||||
- docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
# ref:
|
||||
# - refs/tags/v.*.*.*
|
||||
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