From d3dc7384a75637f53277d9f8dc93d48be0b5489d Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 12:07:28 +0530 Subject: [PATCH 1/6] updated with docker details --- Drone.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Drone.yaml b/Drone.yaml index 8579afb..0fe24d6 100644 --- a/Drone.yaml +++ b/Drone.yaml @@ -1,16 +1,13 @@ -#Drone CI File! -#Commit Message: Drone! Captain Canary is here! - kind: pipeline -type: kubernetes -name: default +type: docker +name: greeting steps: - -- name: build - image: golang:1.13 +- name: en + image: alpine commands: - - "go build -o ./myapp" + - echo hello world + - name: publish image: plugins/docker @@ -19,6 +16,6 @@ steps: from_secret: docker_username password: from_secret: docker_password - repo: rlachhman/myrepo + repo: sunleo04/first_drone_docker_repo auto_tag: true auto_tag_suffix: drone-build From e234540dfd71977f2295ef047e78fe2553f71d47 Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 12:26:29 +0530 Subject: [PATCH 2/6] added .drone file --- .drone.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .drone.yaml diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..0fe24d6 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,21 @@ +kind: pipeline +type: docker +name: greeting + +steps: +- name: en + image: alpine + commands: + - echo hello world + + +- name: publish + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: sunleo04/first_drone_docker_repo + auto_tag: true + auto_tag_suffix: drone-build From da1374d7ea0718322fa8f0871e8c8d8c0cdb12d2 Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 15:47:04 +0530 Subject: [PATCH 3/6] extra h --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c2ac993..a312f8e 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( func hello(w http.ResponseWriter, req *http.Request) { - fmt.Fprintf(w, "hello\n") + fmt.Fprintf(w, "hhello\n") } func headers(w http.ResponseWriter, req *http.Request) { From b9ae969839ecdab559ab0fad173dc7a3fbf9d3b9 Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 16:12:14 +0530 Subject: [PATCH 4/6] updated drone config --- .drone.yaml => .drone.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .drone.yaml => .drone.yml (100%) diff --git a/.drone.yaml b/.drone.yml similarity index 100% rename from .drone.yaml rename to .drone.yml From 7bfbccc79c87c418360c0342095536b4b9d03afc Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 16:31:29 +0530 Subject: [PATCH 5/6] removed docker part --- .drone.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0fe24d6..e07475d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,15 +7,3 @@ steps: image: alpine commands: - echo hello world - - -- name: publish - image: plugins/docker - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: sunleo04/first_drone_docker_repo - auto_tag: true - auto_tag_suffix: drone-build From 92a31296d4d2c3bdd6c1ef2cb12be3bf76b35526 Mon Sep 17 00:00:00 2001 From: josephmicheal Date: Sun, 18 Jul 2021 16:32:30 +0530 Subject: [PATCH 6/6] updatd main.go --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a312f8e..c2ac993 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( func hello(w http.ResponseWriter, req *http.Request) { - fmt.Fprintf(w, "hhello\n") + fmt.Fprintf(w, "hello\n") } func headers(w http.ResponseWriter, req *http.Request) {