From 1aa4be2e475fc813a5f1fa83b652f37a2c95c7e2 Mon Sep 17 00:00:00 2001 From: Lulzette Date: Tue, 19 Oct 2021 02:14:31 +0000 Subject: [PATCH 1/3] Drone --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a1663ec --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: greets + commands: + - docker build . + From 2f5867028e561d524c05b7c88336cb375f619c38 Mon Sep 17 00:00:00 2001 From: Lulzette Date: Tue, 19 Oct 2021 02:16:18 +0000 Subject: [PATCH 2/3] fix --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index a1663ec..b720960 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ name: default steps: - name: greets + image: python commands: - docker build . From c4602b9d4e2156da7182da40ea5e3015aab424e6 Mon Sep 17 00:00:00 2001 From: Lulzette Date: Tue, 19 Oct 2021 02:26:08 +0000 Subject: [PATCH 3/3] change runner --- .drone.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index b720960..f5b9966 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,20 @@ kind: pipeline -type: docker +type: exec name: default +platform: + os: linux + arch: amd64 + steps: - - name: greets - image: python + - name: build commands: - docker build . + - name: test + commands: + - docker-compose up --build --abort-on-container-exit + - name: run + commands: + - docker-compose up --build -d +