|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: HtmlCssTest
|
|
|
|
|
name: Deploiement
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
@ -15,3 +15,23 @@ steps:
|
|
|
|
|
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
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/$REPO_OWNER/$REPO_NAME
|
|
|
|
|
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/$REPO_OWNER/$REPO_NAME:latest
|
|
|
|
|
CONTAINERNAME: $REPO_NAME
|
|
|
|
|
COMMAND: create
|
|
|
|
|
OVERWRITE: true
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: $REPO_OWNER-$REPO_NAME/
|