This commit is contained in:
parent
d1803218f9
commit
69b806fcf5
15
.drone.yml
15
.drone.yml
@ -3,6 +3,14 @@ kind: pipeline
|
|||||||
name: build-and-upload
|
name: build-and-upload
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: send-tags-to-tags-file
|
||||||
|
image: alpine
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
commands:
|
||||||
|
- echo -n "latest, $(date +'%Y-%m-%d'), ${DRONE_COMMIT_SHA:0:7}, ${DRONE_COMMIT_SHA}, ${DRONE_BRANCH}" > .tags
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
environment:
|
environment:
|
||||||
@ -10,12 +18,7 @@ steps:
|
|||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
settings:
|
settings:
|
||||||
repo: sneak/builder
|
repo: sneak/builder
|
||||||
custom_dns: [116.202.204.30]
|
force_tag: true
|
||||||
tags:
|
|
||||||
- ${DRONE_COMMIT_SHA}
|
|
||||||
- "${DRONE_COMMIT_SHA:0:7}"
|
|
||||||
- ${DRONE_BRANCH}
|
|
||||||
- latest
|
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
|
Loading…
Reference in New Issue
Block a user