This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new workflow * fix make file issue Signed-off-by: Tarun Pothulapati <[email protected]> * remove circleci Signed-off-by: Tarun Pothulapati <[email protected]> * add job dependency Signed-off-by: Tarun Pothulapati <[email protected]> * add release file Signed-off-by: Tarun Pothulapati <[email protected]> * only build at each pr Signed-off-by: Tarun Pothulapati <[email protected]> * update release Signed-off-by: Tarun Pothulapati <[email protected]> * update release workflow to take GITHUB_TOKEN env Signed-off-by: Tarun Pothulapati <[email protected]> * update descriptions of build workflow Signed-off-by: Tarun Pothulapati <[email protected]> * update release workflow Signed-off-by: Tarun Pothulapati <[email protected]> * move to a single workflow Signed-off-by: Tarun Pothulapati <[email protected]> * remove tag build Signed-off-by: Tarun Pothulapati <[email protected]> * check tag for release Signed-off-by: Tarun Pothulapati <[email protected]>
- Loading branch information
1 parent
1e08ed0
commit e59c7ce
Showing
3 changed files
with
63 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build and Testing | ||
on: | ||
pull_request: {} | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
paths-ignore: | ||
- '*.md' | ||
- '**/*.md' | ||
branches: | ||
- master | ||
jobs: | ||
go_build_test: | ||
name: Go Build and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.12 | ||
- name: Validate go deps | ||
run: | | ||
make dep | ||
- name: Running go linting and unit tests | ||
run: | | ||
make lint test | ||
docker_build: | ||
name: Docker Build | ||
needs: go_build_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Docker Build | ||
run: | | ||
make build | ||
release: | ||
name: Docker Push and Release | ||
needs: docker_build | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.ref, 'v') | ||
steps: | ||
- name: Set env | ||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF/refs\/tags\//} | ||
- name: Docker Build and Push | ||
run: | | ||
docker login -u ${{ secrets.DOCKER_USER}} -p ${{ secrets.DOCKER_PASS}} && \ | ||
make push | ||
- name: Performing a Github release | ||
run: | | ||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
make release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters