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