From 4d51d69f13c1d142685687f3071cbb7738a494ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Bry=C5=82kowski?= Date: Thu, 20 Jul 2023 20:23:34 +0200 Subject: [PATCH 1/3] Update build-docker.yml --- .github/workflows/build-docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 909df5b..b511023 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -7,6 +7,7 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + jobs: build-and-push-image: runs-on: ubuntu-latest From c53cc4f1ddac3eca029b89003186ccdd40ba09e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Bry=C5=82kowski?= Date: Wed, 26 Jul 2023 17:40:58 +0200 Subject: [PATCH 2/3] add looking for config in docker secret --- bot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.go b/bot.go index 739190c..8777708 100644 --- a/bot.go +++ b/bot.go @@ -100,6 +100,7 @@ func fetchFeed(after string) ([]FeedItem, error) { func main() { viper.SetConfigName("config") viper.SetConfigType("yaml") + viper.AddConfigPath("/run/secrets/phabricator-tele-notifier") viper.AddConfigPath("/etc/phabricator-tele-notifier/") viper.AddConfigPath("$HOME/.config/phabricator-tele-notifier") viper.AddConfigPath(".") From 9f6d8ecc6f575752f42c9cf0822956b2d55f167d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Bry=C5=82kowski?= Date: Wed, 26 Jul 2023 17:49:49 +0200 Subject: [PATCH 3/3] fix looking in secrets --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 8777708..e3ec6e9 100644 --- a/bot.go +++ b/bot.go @@ -100,7 +100,7 @@ func fetchFeed(after string) ([]FeedItem, error) { func main() { viper.SetConfigName("config") viper.SetConfigType("yaml") - viper.AddConfigPath("/run/secrets/phabricator-tele-notifier") + viper.AddConfigPath("/run/secrets/") viper.AddConfigPath("/etc/phabricator-tele-notifier/") viper.AddConfigPath("$HOME/.config/phabricator-tele-notifier") viper.AddConfigPath(".")