Skip to content

Commit

Permalink
move ci to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hensur committed Feb 17, 2021
1 parent a7a885a commit 91d8da1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 49 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build & Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot --skip-publish
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
name: Build and release image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- run: docker login -u "${{ secrets.DOCKER_LOGIN_USER }}" -p "${{ secrets.DOCKER_LOGIN_PASSWORD }}" quay.io

- run: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_USER_TOKEN }}
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

0 comments on commit 91d8da1

Please sign in to comment.