From dbb4986c2d52f755aafbbfa98edb1a13eaca701c Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Wed, 16 Aug 2023 16:49:52 -0500 Subject: [PATCH] Adding initial CI config --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..be2022e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +kind: pipeline +type: docker +name: default + +node: + lan: internal + +steps: + - name: Build + image: gitea.watsonlabs.net/watsonb8/golang-protoc-docker + commands: + - go install goa.design/goa/v3/cmd/goa@v3 + - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest + - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + - chmod u+x gen build + - ./gen + - ./build + - name: Email Notify + image: drillster/drone-email + settings: + host: 10.44.1.13 + username: srvGitea + password: + from_secret: smtp_password + from: drone@watsonlabs.net + skip_verify: true + depends_on: + - Build + when: + status: + - failure +image_pull_secrets: + - dockerCreds \ No newline at end of file diff --git a/README.md b/README.md index 0142340..c965299 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # crossnokaye-interview-assignment +[![Build Status](https://drone.watsonlabs.net/api/badges/watsonb8/crossnokaye-interview-assignment/status.svg?ref=refs/heads/main)](https://drone.watsonlabs.net/watsonb8/crossnokaye-interview-assignment) + ## Go/Goa Design Homework Assignment Prerequisites - Basic familiarity with the Goa framework, including the following: