Skip to content

Commit

Permalink
Merge pull request #7 from jesserockz/ci-cd
Browse files Browse the repository at this point in the history
Use workflow to build and release
  • Loading branch information
ekini authored May 25, 2020
2 parents 3899f1f + 97690ba commit c48b106
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 37 deletions.
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate build of lp-aws-saml
on:
push:
pull_request:
jobs:
build:
name: build lp-aws-saml
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow to restore tags
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x

- run: go get
- run: go build
- run: ./lp-aws-saml -h
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and publish lp-aws-saml
on:
push:
tags:
- '*'
jobs:
build_and_deploy:
name: build and deploy lp-aws-saml
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow to restore tags
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ builds:
- windows
goarch:
- amd64
nfpm:
vendor: Springload
nfpms:
- vendor: Springload
homepage: https://springload.co.nz

maintainer: DevOps team
Expand All @@ -17,8 +17,8 @@ nfpm:
formats:
- deb
- rpm
brew:
name: lp-aws-saml
brews:
- name: lp-aws-saml
github:
owner: springload
name: homebrew-tools
Expand Down

0 comments on commit c48b106

Please sign in to comment.