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..b50c227 --- /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.13.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..cd4dfe8 --- /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.13.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/go.mod b/go.mod index 112b7dc..0e12436 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/springload/lp-aws-saml +go 1.14 + require ( github.com/BurntSushi/toml v0.3.1 // indirect github.com/antchfx/xmlquery v0.0.0-20180925013719-07935b1c0f2e