From a6718b2487cca8d17f5a6a4d53876338428e2ba6 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Sun, 14 Apr 2024 01:25:56 +0200 Subject: [PATCH] update docker build action --- .github/workflows/auth-service-cd.yml | 4 ++-- .github/workflows/backend-cd.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auth-service-cd.yml b/.github/workflows/auth-service-cd.yml index 5ad23ae..9b5a827 100644 --- a/.github/workflows/auth-service-cd.yml +++ b/.github/workflows/auth-service-cd.yml @@ -16,9 +16,9 @@ jobs: id: create_image_tag with: script: | - if (context.issue.number) { + if(github.ref == 'refs/heads/main') { return "pr" + context.issue.number; - } else if(github.ref == 'refs/heads/main') { + } else if(context.issue.number) { return 'latest'; } else { return "pr" + ( diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index 0245867..f3ebd9f 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -16,9 +16,9 @@ jobs: id: create_image_tag with: script: | - if (context.issue.number) { + if(github.ref == 'refs/heads/main') { return "pr" + context.issue.number; - } else if(github.ref == 'refs/heads/main') { + } else if(context.issue.number) { return 'latest'; } else { return "pr" + (