From a78d1535c784a73e54356bf9cd62f9fff92a95e1 Mon Sep 17 00:00:00 2001 From: Arif Herusetyo Wicaksono Date: Sat, 18 Aug 2018 12:49:11 +0900 Subject: [PATCH] Use gitea_release in drone when tagging artifact --- .drone.yml | 13 +++++++++++-- Makefile | 2 +- helloworld.cpp | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2c2bf72..6dda55a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,8 +1,17 @@ pipeline: build: - image: gcc + image: gcc:4.9 commands: - make clean - make - make install - + gitea_release: + image: plugins/gitea-release + base_url: https://git.wicak.co + secrets: [ gitea_token ] + files: bin/* + checksum: + - sha1 + - sha256 + when: + event: tag diff --git a/Makefile b/Makefile index d407405..07c9c09 100644 --- a/Makefile +++ b/Makefile @@ -11,4 +11,4 @@ install: .PHONY: clean clean: - rm -f hello + rm -rf bin/ diff --git a/helloworld.cpp b/helloworld.cpp index c9245ce..5128e66 100644 --- a/helloworld.cpp +++ b/helloworld.cpp @@ -3,6 +3,6 @@ using namespace std; int main() { - cout << "Hello, Arif!"; + cout << "Hello, PR#2!"; return 0; }