Create a Docker image and deploy it
This commit is contained in:
37
.drone.yml
37
.drone.yml
@@ -28,3 +28,40 @@ steps:
|
||||
- php bin/phpunit
|
||||
depends_on:
|
||||
- install
|
||||
|
||||
- name: docker-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: hub.codefirst.iut.uca.fr
|
||||
repo: hub.codefirst.iut.uca.fr/clement.freville2/herbarium
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
cache_from:
|
||||
- hub.codefirst.iut.uca.fr/clement.freville2/herbarium:latest
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- ci/*
|
||||
|
||||
- name: deploy
|
||||
image: hub.codefirst.iut.uca.fr/clement.freville2/codefirst-dockerproxy-clientdrone:latest
|
||||
settings:
|
||||
image: hub.codefirst.iut.uca.fr/clement.freville2/herbarium:latest
|
||||
container: herbarium
|
||||
command: create
|
||||
overwrite: true
|
||||
admins: clementfreville2
|
||||
environment:
|
||||
# Disable HTTPS redirection as it served by a reverse proxy
|
||||
CODEFIRST_CLIENTDRONE_ENV_SERVER_NAME: http://codefirst.iut.uca.fr
|
||||
depends_on:
|
||||
- docker-image
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- ci/*
|
||||
|
Reference in New Issue
Block a user