commit
0ac2d6623c
@ -0,0 +1,20 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: docker-build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
registry: hub.codefirst.iut.uca.fr
|
||||
repo: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-flutter
|
||||
username:
|
||||
from_secret: SECRET_REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: SECRET_REGISTRY_PASSWORD
|
@ -0,0 +1,23 @@
|
||||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt update && apt -y install git apt-transport-https wget gnupg curl unzip
|
||||
|
||||
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/dart.gpg
|
||||
|
||||
RUN echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | tee /etc/apt/sources.list.d/dart_stable.list
|
||||
|
||||
RUN apt update && apt -y install dart
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
RUN git clone https://github.com/flutter/flutter.git -b stable
|
||||
|
||||
ENV PATH="${PATH}:/opt/flutter/bin:/usr/lib/dart/bin"
|
||||
|
||||
RUN flutter precache && flutter doctor
|
||||
|
||||
ADD https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip /opt
|
||||
|
||||
RUN unzip /opt/sonar-scanner-cli-4.7.0.2747-linux.zip
|
||||
|
||||
ENV PATH="${PATH}:/opt/flutter/bin:/usr/lib/dart/bin:/opt/sonar-scanner-4.7.0.2747-linux/bin"
|
Loading…
Reference in new issue