From 6f73bbd42256362c1e383214a54854478b0a6b36 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 18:21:10 +0200 Subject: [PATCH 1/8] Add drone config --- .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..0ae354e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +kind: pipeline +name: build + +steps: + - name: build + image: ekidd/rust-musl-builder + commands: + - cargo test + - cargo build From 4a690226591ba695d8ca5986a5b2fc57c9dd217d Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 18:23:27 +0200 Subject: [PATCH 2/8] Dummy commit --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 0ae354e..943e96e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,3 +7,4 @@ steps: commands: - cargo test - cargo build + From bd4b8c64ba683811c5d2acd1f061a2fc64fd00f8 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 18:28:16 +0200 Subject: [PATCH 3/8] Fix user --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 943e96e..2411a92 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,6 @@ steps: - name: build image: ekidd/rust-musl-builder commands: + - sudo chown -R rust . - cargo test - cargo build - From 6355dce8272185ebaae168d1cf90369cb17a1393 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 18:43:20 +0200 Subject: [PATCH 4/8] Test release build --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2411a92..4e54e11 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,5 +6,5 @@ steps: image: ekidd/rust-musl-builder commands: - sudo chown -R rust . - - cargo test - - cargo build + - cargo test --release + - cargo build --release From 751b8e9a6df1c7c3aa37e1de7cd084dbe60248fa Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 21:31:48 +0200 Subject: [PATCH 5/8] Build image in CI --- .drone.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4e54e11..3577abf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,9 +2,13 @@ kind: pipeline name: build steps: - - name: build - image: ekidd/rust-musl-builder - commands: - - sudo chown -R rust . - - cargo test --release - - cargo build --release + - name: docker + image: plugins/docker + settings: + repo: vbrandl/hoc + # - name: build + # image: ekidd/rust-musl-builder + # commands: + # - sudo chown -R rust . + # - cargo test --release + # - cargo build --release From 80a0afbf536a0af0b22e7890d97eab548e628629 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 21:56:59 +0200 Subject: [PATCH 6/8] Upload docker image --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3577abf..ed67c61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,11 @@ steps: - name: docker image: plugins/docker settings: - repo: vbrandl/hoc + repo: vbrandl/hits-of-code + username: + from_secret: docker_username + password: + from_secret: docker_password # - name: build # image: ekidd/rust-musl-builder # commands: From f1ae1b4d59c29c8c7fc63531004ff7441a44e5b1 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 22:08:23 +0200 Subject: [PATCH 7/8] Enable autotag --- .drone.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index ed67c61..6902a98 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,13 +6,8 @@ steps: image: plugins/docker settings: repo: vbrandl/hits-of-code + auto_tag: true username: from_secret: docker_username password: from_secret: docker_password - # - name: build - # image: ekidd/rust-musl-builder - # commands: - # - sudo chown -R rust . - # - cargo test --release - # - cargo build --release From 2da27712182c7e97f573d7bf86abd20406e7a7b9 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 1 May 2019 22:13:06 +0200 Subject: [PATCH 8/8] Add drone badge and remove docker cloud badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a895823..912b6fc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Hits-of-Code [![Hits-of-Code](https://hitsofcode.com/github/vbrandl/hoc)](https://hitsofcode.com/view/github/vbrandl/hoc) -[![Docker build](https://img.shields.io/docker/cloud/build/vbrandl/hits-of-code.svg)](https://hub.docker.com/r/vbrandl/hits-of-code) +[![Drone build](https://drone.vbrandl.net/api/badges/vbrandl/hoc/status.svg)](https://drone.vbrandl.net/vbrandl/hoc) [![Gitlab build](https://gitlab.com/vbrandl/hoc/badges/master/pipeline.svg)](https://gitlab.com/vbrandl/hoc/pipelines) [![Travis build](https://travis-ci.org/vbrandl/hoc.svg?branch=master)](https://travis-ci.org/vbrandl/hoc)