Add Dockerfile and Docker Hub publishing (#9)

Adds docker image publishing with example usage in the README.
This commit is contained in:
Dave Gallant
2020-07-11 22:47:30 -04:00
committed by GitHub
parent 8af371626f
commit d3a23736cc
10 changed files with 99 additions and 251 deletions

View File

@@ -83,7 +83,7 @@ pub fn match_deals(deals: Deals, config: Config, dbpath: &str) {
.unwrap_or_else(|e| panic!("Invalid regex: {}. {}", expression, e));
if re.is_match(&topic.title) {
found_match = true;
debug!(
info!(
"Expression '{}' matched title: {}",
expression, &topic.title
)
@@ -91,7 +91,7 @@ pub fn match_deals(deals: Deals, config: Config, dbpath: &str) {
let dealer_name = topic.offer.dealer_name.as_ref().unwrap();
if re.is_match(&dealer_name) {
found_match = true;
debug!(
info!(
"Expression '{}' matched dealer: {}",
expression, &topic.title
)
@@ -102,7 +102,7 @@ pub fn match_deals(deals: Deals, config: Config, dbpath: &str) {
}
let deal_hash = hash_deal(topic);
if db::hash_exists(&deal_hash, db::get_config(dbpath)) {
debug!("deal hash '{}' already exists", &deal_hash);
info!("deal hash '{}' already exists", &deal_hash);
} else {
let posts = parse_posts(
get_topic(topic.id)