Skip to content

Commit

Permalink
Add auto docker build for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Nov 25, 2021
1 parent e2345d8 commit 57b32c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jobs:
mkdir -p bin/
go test -v ./...
release_nightly:
runs-on: ubuntu-latest
needs: test
steps:
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Run docker_nightly
run: make docker_nightly

release:
runs-on: ubuntu-latest
needs: test
Expand All @@ -72,3 +87,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build install test docker_test docker_build docker_push
.PHONY: build install test docker_test docker_build docker_push docker_nightly

build:
mkdir -p bin/
Expand Down

0 comments on commit 57b32c8

Please sign in to comment.