From 96e008dfe1273078526de8b54b28e0f703af9bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 04:50:04 +0200 Subject: [PATCH 01/12] Add '.drone.yml' --- .drone.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..342025a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,12 @@ +# docker image build + - name: docker-build-and-push + image: plugins/docker + settings: + dockerfile: Sources/Dockerfile + context: Sources/ + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/my.login/myRepository + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD \ No newline at end of file -- 2.36.3 From dd7cf8610101a980daea1c6a520128bec31b08c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:07:05 +0200 Subject: [PATCH 02/12] Delete '.drone.yml' --- .drone.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 342025a..0000000 --- a/.drone.yml +++ /dev/null @@ -1,12 +0,0 @@ -# docker image build - - name: docker-build-and-push - image: plugins/docker - settings: - dockerfile: Sources/Dockerfile - context: Sources/ - registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/my.login/myRepository - username: - from_secret: SECRET_REGISTRY_USERNAME - password: - from_secret: SECRET_REGISTRY_PASSWORD \ No newline at end of file -- 2.36.3 From fa348568627f2c6f71c942032c0fbc88cfc6a067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:25:04 +0200 Subject: [PATCH 03/12] Add '.drone.yml' --- .drone.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..464f638 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +# database container deployment + - name: deploy-container-dafl + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: alpine:3.16 + CONTAINERNAME: dafl + COMMAND: create + # OVERWRITE: false + PRIVATE: true + CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_ROOT_PASSWORD: + from_secret: db_root_password + CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_DATABASE: + from_secret: db_database + CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_USER: + from_secret: db_user + CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_PASSWORD: + from_secret: db_password \ No newline at end of file -- 2.36.3 From efbc70b60ffb77cf4458b3ebe8c6fca68525fc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:35:43 +0200 Subject: [PATCH 04/12] Update '.drone.yml' --- .drone.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 464f638..6a8431f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,17 @@ # database container deployment - - name: deploy-container-dafl + - name: deploy-container-mysql image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: - IMAGENAME: alpine:3.16 - CONTAINERNAME: dafl + IMAGENAME: mariadb:10 + CONTAINERNAME: mysql COMMAND: create # OVERWRITE: false PRIVATE: true - CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_ROOT_PASSWORD: + CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: from_secret: db_root_password - CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_DATABASE: + CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE: from_secret: db_database - CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_USER: + CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER: from_secret: db_user - CODEFIRST_CLIENTDRONE_ENV_POSTGRESQL_PASSWORD: + CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password \ No newline at end of file -- 2.36.3 From 067a68ca7512bcf63b10b14edd4377c21d689f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:47:51 +0200 Subject: [PATCH 05/12] Update '.drone.yml' --- .drone.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6a8431f..7b49731 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,18 @@ -# database container deployment - - name: deploy-container-mysql - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest - environment: - IMAGENAME: mariadb:10 - CONTAINERNAME: mysql - COMMAND: create - # OVERWRITE: false - PRIVATE: true - CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: - from_secret: db_root_password - CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE: - from_secret: db_database - CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER: - from_secret: db_user - CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: - from_secret: db_password \ No newline at end of file +kind: pipeline +type: docker +name: DAFLPipeline + +steps: +- name: app-build + image: plugins/docker:17.12 + settings: + repo: DAFLDev/DAFLMusic + auto_tag: true + dockerfile: Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + - push \ No newline at end of file -- 2.36.3 From 9f1e221d13e18923d0bdfb0ee666acf5cb05a35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:48:32 +0200 Subject: [PATCH 06/12] Add 'Dockerfile' --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..34ea2a2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:16.04 + +ENV FLUTTER_HOME ${HOME}/flutter +ENV FLUTTER_VERSION 1.12.13+hotfix.5-stable + +RUN apt-get update \ + && apt-get install -y libglu1-mesa git curl unzip wget xz-utils lib32stdc++6 \ + && apt-get clean + +RUN wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v${FLUTTER_VERSION}.tar.xz +RUN cd ${HOME} & tar xf /flutter_linux_v${FLUTTER_VERSION}.tar.xz + +ENV PATH ${PATH}:${FLUTTER_HOME}/bin + +WORKDIR / \ No newline at end of file -- 2.36.3 From 204185ed98cd33d5929ea840b7abe3f34d9c4944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 05:57:35 +0200 Subject: [PATCH 07/12] Update 'README.md' --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0990995..8605459 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ +[![Build Status](https://codefirst.iut.uca.fr/api/badges/DAFLDev/DAFLMusic/status.svg)](https://codefirst.iut.uca.fr/DAFLDev/DAFLMusic) + # DAFLMusic -- 2.36.3 From 372fbfcefaacdb07968f244d93e03536e06d68c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:06:36 +0200 Subject: [PATCH 08/12] Update '.drone.yml' --- .drone.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7b49731..1b1d2d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,15 +4,8 @@ name: DAFLPipeline steps: - name: app-build - image: plugins/docker:17.12 - settings: - repo: DAFLDev/DAFLMusic - auto_tag: true - dockerfile: Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password - when: - event: - - push \ No newline at end of file + image: cirrusci/flutter:stable + commands: + - sudo chown -R cirrus:cirrus . + - flutter doctor + - flutter test \ No newline at end of file -- 2.36.3 From 43d8f6cedafdab6ec76945fa9a176d01dcfde85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:06:45 +0200 Subject: [PATCH 09/12] Delete 'Dockerfile' --- Dockerfile | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 34ea2a2..0000000 --- a/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM ubuntu:16.04 - -ENV FLUTTER_HOME ${HOME}/flutter -ENV FLUTTER_VERSION 1.12.13+hotfix.5-stable - -RUN apt-get update \ - && apt-get install -y libglu1-mesa git curl unzip wget xz-utils lib32stdc++6 \ - && apt-get clean - -RUN wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v${FLUTTER_VERSION}.tar.xz -RUN cd ${HOME} & tar xf /flutter_linux_v${FLUTTER_VERSION}.tar.xz - -ENV PATH ${PATH}:${FLUTTER_HOME}/bin - -WORKDIR / \ No newline at end of file -- 2.36.3 From 8b4ac22388ad2e245e0076c490eb9a4dd8ccb134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:09:06 +0200 Subject: [PATCH 10/12] Update '.drone.yml' --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1b1d2d6..3e9793e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,5 @@ steps: - name: app-build image: cirrusci/flutter:stable commands: - - sudo chown -R cirrus:cirrus . - flutter doctor - flutter test \ No newline at end of file -- 2.36.3 From 0fde9305e9ff0af043e17304b667e76be0d3a529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:10:15 +0200 Subject: [PATCH 11/12] Update '.drone.yml' --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3e9793e..a335bc9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,4 @@ steps: image: cirrusci/flutter:stable commands: - flutter doctor - - flutter test \ No newline at end of file + - flutter app-build \ No newline at end of file -- 2.36.3 From 4b5be0c92bc7d64447c52f361d1fa1fc784232ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:12:57 +0200 Subject: [PATCH 12/12] Update '.drone.yml' --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a335bc9..d4063be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,4 @@ steps: image: cirrusci/flutter:stable commands: - flutter doctor - - flutter app-build \ No newline at end of file + - flutter build \ No newline at end of file -- 2.36.3