diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index bd496af..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: golang:1.11-alpine - environment: - - CGO_ENABLED: 0 - - working_directory: /go/src/github.com/springload/lp-aws-saml - - steps: - - run: - name: update and install tool dependencies - command: |- - apk update && apk add --no-cache git openssh-client - - - checkout - - - run: - name: Install go dep - command: go get -u github.com/golang/dep/cmd/dep - - - run: - name: install go deps - command: dep ensure -vendor-only - - - run: - name: build - command: go build - - - run: - name: print help - command: ./lp-aws-saml -h diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d43b065 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..755ac15 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 3b6b4b0..2d076b1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,8 +7,8 @@ builds: - windows goarch: - amd64 -nfpm: - vendor: Springload +nfpms: +- vendor: Springload homepage: https://springload.co.nz maintainer: DevOps team @@ -17,8 +17,8 @@ nfpm: formats: - deb - rpm -brew: - name: lp-aws-saml +brews: +- name: lp-aws-saml github: owner: springload name: homebrew-tools