Minor adjustments to test deployment
All checks were successful
Go Test / test (push) Successful in 3m43s
All checks were successful
Go Test / test (push) Successful in 3m43s
This commit is contained in:
parent
45b23b4cf0
commit
01da611d26
@ -5,5 +5,4 @@ RUN go build .
|
|||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /source/timetable-mgr /bin/timetable-mgr
|
COPY --from=builder /source/timetable-mgr /bin/timetable-mgr
|
||||||
USER nobody
|
|
||||||
CMD [ "/bin/timetable-mgr" ]
|
CMD [ "/bin/timetable-mgr" ]
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
// Version Constants
|
// Version Constants
|
||||||
const versionNum string = "2024.04.0"
|
const versionNum string = "2024.04.0"
|
||||||
const versionSuffix string = "rc-1"
|
const versionSuffix string = "rc2"
|
||||||
const Version string = versionNum + "-" + versionSuffix
|
const Version string = versionNum + "-" + versionSuffix
|
||||||
|
|
||||||
// Environment Variables
|
// Environment Variables
|
||||||
|
2
main.go
2
main.go
@ -31,7 +31,7 @@ func init() {
|
|||||||
printStartupBanner()
|
printStartupBanner()
|
||||||
fmt.Printf("%sVersion %s \n\n%s", bold+blue, helpers.Version, reset)
|
fmt.Printf("%sVersion %s \n\n%s", bold+blue, helpers.Version, reset)
|
||||||
|
|
||||||
checkRunAsRoot()
|
//checkRunAsRoot()
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -30,7 +30,7 @@ func NrodStream(url string, cfg *helpers.Configuration) (io.ReadCloser, error) {
|
|||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error carrying out HTTP Request", zap.Error(err), zap.Int("STATUS", resp.StatusCode))
|
log.Error("Error carrying out HTTP Request", zap.Error(err))
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user