|
|
|
@ -18,6 +18,41 @@ steps:
|
|
|
|
|
- curl -F "file=@$sfm_apk" https://anonfiles.me/api/v1/upload > upload.json
|
|
|
|
|
- cat upload.json | cut -d '"' -f 12
|
|
|
|
|
|
|
|
|
|
- name: build-web
|
|
|
|
|
image: ghcr.io/cirruslabs/flutter:3.13.9
|
|
|
|
|
volumes:
|
|
|
|
|
- name: web_build
|
|
|
|
|
- path: /build
|
|
|
|
|
commands:
|
|
|
|
|
- flutter build web --web-rendere canvakit
|
|
|
|
|
- cp ./build/web/* /build
|
|
|
|
|
|
|
|
|
|
- name: build-web-image
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
volumes:
|
|
|
|
|
- name: web_build
|
|
|
|
|
- path: /build
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
context: .
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
repo: hub.codefisrt.iut.uca.fr/remi.arnal/smartfit_web
|
|
|
|
|
username:
|
|
|
|
|
from_secret: cf_username
|
|
|
|
|
password:
|
|
|
|
|
from_password: cf_password
|
|
|
|
|
depends_on: [build-web]
|
|
|
|
|
|
|
|
|
|
- name: deploy-web-image
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
environement:
|
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/remi.arnal/smartfit_web
|
|
|
|
|
CONTAINERNAME: smartfit_web
|
|
|
|
|
COMMAND: create
|
|
|
|
|
OVERWRITE: true
|
|
|
|
|
ADMINS: remiarnal,enzojolys,othmanebenjelloun
|
|
|
|
|
depends_on: [build-web-image]
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
|
image: ghcr.io/cirruslabs/flutter:3.13.9
|
|
|
|
|
environment:
|
|
|
|
@ -31,4 +66,8 @@ steps:
|
|
|
|
|
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
|
|
|
|
- export SONAR_SCANNER_OPTS="-server"
|
|
|
|
|
- sonar-scanner -D sonar.projectKey=SmartFit_Mobile -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN}
|
|
|
|
|
depends_on: [ build-apk ]
|
|
|
|
|
depends_on: [ build-apk, build-web ]
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: web_build
|
|
|
|
|
temp: {}
|
|
|
|
|