generated from Templates_CodeFirst/templateHtmlCss
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
988 B
38 lines
988 B
11 months ago
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: Deploiement
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
- push
|
||
|
|
||
|
steps:
|
||
|
- name: code-analysis
|
||
|
image: aosapps/drone-sonar-plugin
|
||
|
settings:
|
||
|
sonar_host:
|
||
|
from_secret: sonar_host
|
||
|
sonar_token:
|
||
|
from_secret: sonar_token
|
||
|
|
||
|
- name: docker-build-and-push
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
dockerfile: docker/Dockerfile
|
||
|
context: .
|
||
|
registry: hub.codefirst.iut.uca.fr
|
||
|
mirror: https://proxy.iut.uca.fr:8443
|
||
|
repo: hub.codefirst.iut.uca.fr/hugo.pradier2/Portfolio_PRADIER
|
||
|
username:
|
||
|
from_secret: SECRET_REGISTRY_USERNAME
|
||
|
password:
|
||
|
from_secret: SECRET_REGISTRY_PASSWORD
|
||
|
|
||
|
- name: deploy-container
|
||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||
|
environment:
|
||
|
IMAGENAME: hub.codefirst.iut.uca.fr/hugo.pradier2/Portfolio_PRADIER:latest
|
||
|
CONTAINERNAME: Portfolio_PRADIER
|
||
|
COMMAND: create
|
||
|
OVERWRITE: true
|