Loafabreadly / F1Discord-Bot

An F1 related Discord bot that is integrated with the Ergast API
Apache License 2.0
0 stars 0 forks source link

CI/CD pipeline completed with debug log level #3

Closed Loafabreadly closed 1 year ago

Loafabreadly commented 1 year ago

I need to change the config.yml to check for the Console Appenders log level, ensuring it is INFO, and failing the pipeline otherwise.

Loafabreadly commented 1 year ago

- run: name: Check Log4j console appender level command: | if [ "$(grep -c 'consoleAppender.threshold=INFO' log4j.properties)" -eq 0 ]; then echo "Log4j console appender level is not set to INFO" exit 1 fi

Or something like this

Loafabreadly commented 1 year ago

image Testing completed - CI/CD pipeline will now fail and not push a build to prd if the logger is set to anything other than INFO.

Also changed the logic so that all commits on all branches will run the gradle-build job but only master will get an image built and pushed to ECS.

Loafabreadly commented 1 year ago

https://github.com/Loafabreadly/F1Discord-Bot/pull/7