|
|
@ -10,7 +10,7 @@ steps:
|
|
|
|
- name: compilation
|
|
|
|
- name: compilation
|
|
|
|
image: maven:3-openjdk-11
|
|
|
|
image: maven:3-openjdk-11
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- mvn install
|
|
|
|
- mvn package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -25,10 +25,10 @@ trigger:
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
|
|
- name: hadolint
|
|
|
|
#- name: hadolint
|
|
|
|
image: hadolint/hadolint:latest-alpine
|
|
|
|
# image: hadolint/hadolint:latest-alpine
|
|
|
|
commands:
|
|
|
|
#commands:
|
|
|
|
- hadolint Sources/Dockerfile
|
|
|
|
# - hadolint Sources/Dockerfile
|
|
|
|
|
|
|
|
|
|
|
|
- name: docker-image
|
|
|
|
- name: docker-image
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
@ -36,12 +36,16 @@ steps:
|
|
|
|
dockerfile: Sources/Dockerfile
|
|
|
|
dockerfile: Sources/Dockerfile
|
|
|
|
context: Sources
|
|
|
|
context: Sources
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
repo: hub.codefirst.iut.uca.fr/AllDev/API
|
|
|
|
repo: hub.codefirst.iut.uca.fr/lucas.evard/api
|
|
|
|
|
|
|
|
username:
|
|
|
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
|
|
|
password:
|
|
|
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
|
|
- 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/AllDev/API:latest
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/lucas.evard/api:latest
|
|
|
|
CONTAINERNAME: api
|
|
|
|
CONTAINERNAME: api
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: true
|
|
|
|
OVERWRITE: true
|
|
|
|