Skip to content

Commit

Permalink
Merge pull request #72 from utilitywarehouse/droneci
Browse files Browse the repository at this point in the history
Migrate build to Drone CI
  • Loading branch information
george-angel authored Dec 16, 2020
2 parents f5c56d2 + 343c6ee commit 23e8b2e
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 33 deletions.
44 changes: 44 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
kind: pipeline
type: kubernetes
name: default

steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags

- name: release
image: golang:1.15
environment:
CGO_ENABLED: 0
GITHUB_TOKEN:
from_secret: github_token
commands:
- go test -v ./... -cover
- curl -sL https://git.io/goreleaser | bash
when:
event: tag

- name: docker-tag
image: alpine
commands:
- test "${DRONE_BRANCH}" == "master" && echo -n "latest," > .tags || true
- test -n "${DRONE_BRANCH}" && test "${DRONE_BRANCH}" != "master" && echo -n "${DRONE_BRANCH}," > .tags || true
- test -n "${DRONE_TAG}" && echo -n "${DRONE_TAG}," >> .tags || true
- sed -i "s/,$//" .tags

- name: docker-publish
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quay.io/utilitywarehouse/${DRONE_REPO_NAME}
registry: quay.io

trigger:
event:
exclude:
- pull_request
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[![Docker Repository on Quay](https://quay.io/repository/utilitywarehouse/wiresteward/status "Docker Repository on Quay")](https://quay.io/repository/utilitywarehouse/wiresteward)
[![Build Status](https://travis-ci.org/utilitywarehouse/wiresteward.svg?branch=master)](https://travis-ci.org/utilitywarehouse/wiresteward)

# wiresteward

[![Build Status](https://drone.prod.merit.uw.systems/api/badges/utilitywarehouse/wiresteward/status.svg)](https://drone.prod.merit.uw.systems/utilitywarehouse/wiresteward)

Wiresteward is a wireguard peer manager with oauth2 authentication. It is
comprised of two components: server and agent.

Expand All @@ -23,14 +22,14 @@ needed to enable access to a private network.
* [Installation](#installation)
* [Usage](#usage)
* [Agent](#agent)
* [Configuration](#configuration)
* [MTU](#mtu)
* [Running as systemd service (Linux)](#running-as-systemd-service-linux)
* [Running as launchd service (OSX)](#running-as-launchd-service-osx)
* [Authentication](#authentication)
* [Configuration](#configuration)
* [MTU](#mtu)
* [Running as systemd service (Linux)](#running-as-systemd-service-linux)
* [Running as launchd service (OSX)](#running-as-launchd-service-osx)
* [Authentication](#authentication)
* [Server](#server)
* [Configuration](#configuration-1)
* [Running](#running)
* [Configuration](#configuration-1)
* [Running](#running)

<!-- vim-markdown-toc -->

Expand Down

0 comments on commit 23e8b2e

Please sign in to comment.