From 5bb2aa73e113a2b355433e8bc52daaaf0557cb90 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:49:21 +0200 Subject: [PATCH 1/5] First drone-thing --- .drone.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..895366f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +kind: pipeline +type: docker +name: linux-amd64 + +platform: + os: linux + arch: amd64 + +steps: + - name: build + image: amd64/node:12.22.1-buster@sha256:436a6432b6f5109c2c70a1f71f5df0e7d29946a967e85882fe08a37f36b8bec4 + commands: + - npm install + - npm run build:ssr + - name: docker + image: plugins/docker + settings: + auto_tag: true + auto_tag_suffix: linux-amd64 + repo: cami/Bachelorthesis_Code + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_SECRET + when: + branch: + - main + event: + - push + +--- +kind: pipeline +type: docker +name: manifest + +steps: + - name: publish + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + target: caminsha/behaviobio + template: caminsha/behaviobio:OS-ARCH + platforms: + - linux/amd64 + username: + from_secret: USERNAME + password: + from_secret: PASSWORD + +depends_on: + - linux-amd64 + +trigger: + branch: + - main + event: + - push + -- 2.45.2 From 638a924f96996298ed82842cd61e2b82ecbf5643 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:52:40 +0200 Subject: [PATCH 2/5] remove autotag --- .drone.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 895366f..1a51886 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,8 +15,6 @@ steps: - name: docker image: plugins/docker settings: - auto_tag: true - auto_tag_suffix: linux-amd64 repo: cami/Bachelorthesis_Code username: from_secret: DOCKER_USERNAME @@ -37,7 +35,6 @@ steps: - name: publish image: plugins/manifest settings: - auto_tag: true ignore_missing: true target: caminsha/behaviobio template: caminsha/behaviobio:OS-ARCH -- 2.45.2 From ce74bdeb399a1e9c29c8a56a10376c6a2388b21f Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:58:26 +0200 Subject: [PATCH 3/5] .. --- .drone.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1a51886..9378aa3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,32 +25,3 @@ steps: - main event: - push - ---- -kind: pipeline -type: docker -name: manifest - -steps: - - name: publish - image: plugins/manifest - settings: - ignore_missing: true - target: caminsha/behaviobio - template: caminsha/behaviobio:OS-ARCH - platforms: - - linux/amd64 - username: - from_secret: USERNAME - password: - from_secret: PASSWORD - -depends_on: - - linux-amd64 - -trigger: - branch: - - main - event: - - push - -- 2.45.2 From 5ab66c1e678a452160c37f3324997ec6e6d49b3d Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 02:00:08 +0200 Subject: [PATCH 4/5] removed steps things --- .drone.yml | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9378aa3..572335b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,22 +6,16 @@ platform: os: linux arch: amd64 -steps: - - name: build - image: amd64/node:12.22.1-buster@sha256:436a6432b6f5109c2c70a1f71f5df0e7d29946a967e85882fe08a37f36b8bec4 - commands: - - npm install - - npm run build:ssr - - name: docker - image: plugins/docker - settings: - repo: cami/Bachelorthesis_Code - username: - from_secret: DOCKER_USERNAME - password: - from_secret: DOCKER_SECRET - when: - branch: - - main - event: - - push +- name: docker + image: plugins/docker + settings: + repo: cami/Bachelorthesis_Code + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_SECRET + when: + branch: + - main + event: + - push -- 2.45.2 From e81e07972739786c4c7fa13d6d8b8822f8a7eb29 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 02:09:09 +0200 Subject: [PATCH 5/5] drone experiment --- .drone.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 572335b..73bdbe6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,21 +1,17 @@ kind: pipeline -type: docker name: linux-amd64 -platform: - os: linux - arch: amd64 - -- name: docker - image: plugins/docker - settings: - repo: cami/Bachelorthesis_Code - username: - from_secret: DOCKER_USERNAME - password: - from_secret: DOCKER_SECRET - when: - branch: - - main - event: - - push +steps: + - name: docker + image: plugins/docker + settings: + repo: cami/Bachelorthesis_Code + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_SECRET + when: + branch: + - main + event: + - push -- 2.45.2