From a100d7a0845ac3096392d8a8d1f005fe08d4d3a4 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Mon, 2 May 2022 20:30:40 -0700 Subject: [PATCH] fixing the ci script to build and release if i modify a cog --- .gitlab-ci.yml | 3 +-- app/cogs/server_utils.py | 2 +- helm/values.yaml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9bed414..43cd935f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,6 @@ lint_python: rules: - changes: - app/**/* - - app/cogs/* build_and_push_container: stage: deploy @@ -43,7 +42,7 @@ build_and_push_container: - docker push ldooks/dragon-bot:$CI_PIPELINE_ID rules: - changes: - - app/* + - app/**/* - Dockerfile sync_argo: diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index 38fb20b2..a63235c8 100644 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -145,7 +145,7 @@ class ServerUtils(commands.Cog): @commands.command(name="cleanup") async def cleanup(self, ctx: commands.Context): def is_discord_bot(m): - return m.author == bot.user + return m.author == self.bot.user num = 20 if len(ctx.message.content.split()) > 1: diff --git a/helm/values.yaml b/helm/values.yaml index d7a7280f..1839e685 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "169" + tag: "171" repository: ldooks/dragon-bot pullPolicy: IfNotPresent