Skip to content

Commit

Permalink
Changed workdir in Dockerfile, added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
slaveeks committed Apr 21, 2022
1 parent 7a14a0a commit 3d280ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN go build -o /opencollective-webhook

FROM alpine:3.14.1

WORKDIR /
WORKDIR /usr/app

COPY --from=build /opencollective-webhook /opencollective-webhook

Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func loadCurrentState() (GraphQlData, error) {
log.Fatalf("JSON file unmarshalling error: %v", err)
}

log.Print("File read ", jsonFile.Name())

return *state, nil
}

Expand Down Expand Up @@ -103,6 +105,8 @@ func main() {
log.Fatalf("JSON Unmarshalling error: %v", err)
}

log.Print("Response handled")

currentState, err := loadCurrentState()

// Not a first run
Expand Down

0 comments on commit 3d280ee

Please sign in to comment.