Skip to content

Commit

Permalink
Adding condition to push docker image. No image shall be built and pu…
Browse files Browse the repository at this point in the history
…shed if build / test fails
  • Loading branch information
arngrimur-seal committed Jan 30, 2022
1 parent 3ad92b4 commit 9693b8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:

push_to_registry:
name: Push Docker image to Docker Hub
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand Down
1 change: 0 additions & 1 deletion models/IpRecord_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ var lookFor = IpRecord{
}

func TestMain(m *testing.M) {

connString, pool, resource = database_test_helper.SetupDatbase()
var err error
sqlDb, err = database_test_helper.InitDatabase(*connString)
Expand Down

0 comments on commit 9693b8f

Please sign in to comment.