|
|
@ -1,34 +1,37 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
name: Deploiement
|
|
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
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
|
|
|
|
- name: docker-build-and-push
|
|
|
|
image: hub.codefirst.iut.uca.fr/clement.freville2/plugins/kaniko:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
context:
|
|
|
|
context: .
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
repo: hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo
|
|
|
|
mirror: https://proxy.iut.uca.fr:8443
|
|
|
|
username:
|
|
|
|
repo: hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo
|
|
|
|
|
|
|
|
username:
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: SECRET_REGISTRY_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.creneau/portfoliobutcreneauhugo:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-container
|
|
|
|
- name: deploy-container
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo:latest
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo:latest
|
|
|
|
CONTAINERNAME: portfolio
|
|
|
|
CONTAINERNAME: portfoliobutcreneauhugo
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: true
|
|
|
|
OVERWRITE: true
|
|
|
|
depends_on:
|
|
|
|
|
|
|
|
- docker-build-and-push
|
|
|
|
|
|
|
|