Merge pull request 'docker-implementation' (#80) from docker-implementation into master
continuous-integration/drone/push Build is passing Details

Reviewed-on: #80
pull/81/head
Félix MIELCAREK 3 years ago
commit c0a5ad7ae9

@ -2,13 +2,20 @@ kind: pipeline
type: docker type: docker
name: DAFLPipeline name: DAFLPipeline
trigger:
event:
- push
steps: steps:
# build CONTAINER for app-build on cirrusci IMAGE
- name: app-build - name: app-build
image: cirrusci/flutter:stable image: cirrusci/flutter:stable
commands: commands:
- flutter doctor - flutter doctor
- flutter build - cd ./Sources/dafl_project_flutter/
- flutter build apk
# build CONTAINER for sonar on cirrusci IMAGE
- name: code-analysis - name: code-analysis
image: cirrusci/flutter:stable image: cirrusci/flutter:stable
environment: environment:
@ -24,4 +31,15 @@ steps:
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH - export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server" - export SONAR_SCANNER_OPTS="-server"
- sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar - sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
depends_on: [ app-build ] depends_on: [ app-build ]
# container deployment
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
settings:
dockerfile: ./Sources/api_redirect/Dockerfile
environment:
IMAGENAME: httpd:2.4
CONTAINERNAME: api-redirect
COMMAND: create
OVERWRITE: true

@ -0,0 +1,2 @@
FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
Loading…
Cancel
Save