Compare commits
1 Commits
d3b56d071d
...
e2fe171924
Author | SHA1 | Date | |
---|---|---|---|
e2fe171924 |
60
.drone.yml
60
.drone.yml
@ -33,37 +33,36 @@ steps:
|
|||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
|
||||||
- name: build_develop
|
#- name: build_develop
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
commands:
|
# commands:
|
||||||
- sleep 5
|
# - sleep 5
|
||||||
- docker build -t docker.pbiernat.dev/nginx-php:dev .
|
# - docker build -t docker.pbiernat.dev/nginx-php:dev .
|
||||||
- docker images --format "{{.Repository}}:{{.Tag}}" | grep nginx-php:dev
|
# - docker images --format "{{.Repository}}:{{.Tag}}" | grep nginx-php:dev
|
||||||
when:
|
# when:
|
||||||
branch: develop
|
# branch: develop
|
||||||
event: pull_request
|
# volumes:
|
||||||
volumes:
|
# - name: docker-sock
|
||||||
- name: docker-sock
|
# path: /var/run
|
||||||
path: /var/run
|
|
||||||
|
|
||||||
- name: publish_develop
|
#- name: publish_develop
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
privileged: true
|
# privileged: true
|
||||||
environment:
|
# environment:
|
||||||
DOCKER_USERNAME:
|
# DOCKER_USERNAME:
|
||||||
from_secret: registry_username
|
# from_secret: registry_username
|
||||||
DOCKER_PASSWORD:
|
# DOCKER_PASSWORD:
|
||||||
from_secret: registry_password
|
# from_secret: registry_password
|
||||||
commands:
|
# commands:
|
||||||
- sleep 5
|
# - sleep 5
|
||||||
- docker login docker.pbiernat.dev -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
# - docker login docker.pbiernat.dev -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||||
- docker push docker.pbiernat.dev/nginx-php:dev
|
# - docker push docker.pbiernat.dev/nginx-php:dev
|
||||||
when:
|
# when:
|
||||||
branch: develop
|
# branch: develop
|
||||||
event: pull_request
|
# event: push
|
||||||
volumes:
|
# volumes:
|
||||||
- name: docker-sock
|
# - name: docker-sock
|
||||||
path: /var/run
|
# path: /var/run
|
||||||
|
|
||||||
- name: build_feature
|
- name: build_feature
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -108,3 +107,4 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user