Updated debug code
This commit is contained in:
parent
3f809a0ee1
commit
6ca699ecb6
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -27,7 +27,7 @@ spec:
|
||||
stage('Build with Kaniko') {
|
||||
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-dsm2slack.git', credentialsId: 'jenkins-to-git'
|
||||
container('kaniko') {
|
||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/dsm2slack:v1'
|
||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/dsm2slack:latest --destination=harbor.ervine.dev/public/x86_64/alpine/dsm2slack:v1'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
main.go
3
main.go
@ -33,7 +33,8 @@ func PostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Header.Get("api_key") != appConfig.APIKey {
|
||||
http.Error(w, "invalid api key", http.StatusUnauthorized)
|
||||
log.Printf("invalid api key")
|
||||
log.Printf("Received key: ", r.Header.Get("api_key"))
|
||||
api_key = r.Header.Get("api_key")
|
||||
log.Printf("Received key: ", api_key)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user