From a5a5ab3be3647ee89e91b69bb76370a506ff8f87 Mon Sep 17 00:00:00 2001 From: Praveen Date: Tue, 12 Nov 2024 15:15:48 +0530 Subject: [PATCH 1/2] Added concurrency in the Workflow --- .github/workflows/test-deploy-publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-deploy-publish.yml b/.github/workflows/test-deploy-publish.yml index 5b16de8..92f8ba5 100644 --- a/.github/workflows/test-deploy-publish.yml +++ b/.github/workflows/test-deploy-publish.yml @@ -7,6 +7,10 @@ on: paths-ignore: - 'terraform/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + jobs: tests: name: Tests @@ -28,6 +32,9 @@ jobs: needs: tests if: github.ref_name == 'main' || github.ref_name == 'develop' runs-on: ubuntu-latest + concurrency: + group: deploy-${{ github.ref }}-${{ matrix.region }} + cancel-in-progress: false strategy: matrix: region: [ us-east-1, us-west-2 ] From 880c26d75173308e8ae01a0706be1040413ae05f Mon Sep 17 00:00:00 2001 From: Praveen Date: Tue, 12 Nov 2024 17:12:51 +0530 Subject: [PATCH 2/2] Changing the package naming --- .github/workflows/test-deploy-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-deploy-publish.yml b/.github/workflows/test-deploy-publish.yml index 92f8ba5..b597c61 100644 --- a/.github/workflows/test-deploy-publish.yml +++ b/.github/workflows/test-deploy-publish.yml @@ -84,7 +84,7 @@ jobs: with: images: | ${{ vars.IMAGE_NAME }} - ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }} + ghcr.io/${{ github.repository }} tags: | type=ref,event=branch type=semver,pattern={{version}}