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.
49 lines
1.3 KiB
49 lines
1.3 KiB
kind: pipeline
|
|
type: docker
|
|
name: StudentBros
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
|
|
- name: build & analysis
|
|
image: androidsdk/android-31
|
|
environment:
|
|
SONAR_TOKEN:
|
|
from_secret: sonar_token
|
|
settings:
|
|
sources: ./StudentBros
|
|
commands:
|
|
- cd StudentBros
|
|
- ./gradlew --no-daemon :app:assembleDebug sonarqube -Dsonar.projectKey=StudentBros -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar -Dsonar.login=$${SONAR_TOKEN}
|
|
|
|
|
|
#Build image server
|
|
- name: container-server
|
|
image: plugins/docker
|
|
restart: always
|
|
settings:
|
|
dockerfile: Server/Dockerfile
|
|
context: Server/
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/thomas.chazot2/studentbros/server
|
|
username:
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
password:
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
#container deployment
|
|
- name: deploy-server-containers
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/thomas.chazot2/studentbros/server:latest
|
|
CONTAINERNAME: server-studentBros
|
|
COMMAND: create
|
|
OVERWRITE: true
|
|
#PRIVATE: true
|
|
ADMINS: thomaschazot2,mathildejean3,chloemourgand,francoisyousse,albanguilhot,cedricbouhours
|
|
depends_on: [ container-server ] |