From 2c6eb2dfb08418084ff72c08330744b97638b550 Mon Sep 17 00:00:00 2001 From: amber <> Date: Mon, 11 Nov 2024 03:01:00 +0800 Subject: [PATCH] fix: change tag name in gitops.yaml --- .github/workflows/gitops.yaml | 4 ++-- services/{item => account}/test | 0 services/{notification => web}/test | 0 services/{transaction => wishlist}/test | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename services/{item => account}/test (100%) rename services/{notification => web}/test (100%) rename services/{transaction => wishlist}/test (100%) diff --git a/.github/workflows/gitops.yaml b/.github/workflows/gitops.yaml index c3b9db77..4fb7504e 100644 --- a/.github/workflows/gitops.yaml +++ b/.github/workflows/gitops.yaml @@ -66,7 +66,7 @@ jobs: context: ./services/${{ matrix.service }} push: true tags: | - z1yoon/nshm-${{ matrix.service }}:${{ github.sha }} + z1yoon/nshm-${{ matrix.service }}:${{ matrix.service }}-${{ github.sha }} z1yoon/nshm-${{ matrix.service }}:latest build-args: | NEXT_PUBLIC_API_BASE_URL=${{ secrets.NEXT_PUBLIC_API_BASE_URL }} @@ -86,7 +86,7 @@ jobs: - name: Update Image Tag Values run: | chart_dir="helm/nshm" - new_image_tag=${{ github.sha }} + new_image_tag=${{ matrix.service }}-${{ github.sha }} sed -i "/z1yoon\/nshm-${{ matrix.service }}/{n;s/tag: .*/tag: $new_image_tag/;}" $chart_dir/values.yaml cat $chart_dir/values.yaml diff --git a/services/item/test b/services/account/test similarity index 100% rename from services/item/test rename to services/account/test diff --git a/services/notification/test b/services/web/test similarity index 100% rename from services/notification/test rename to services/web/test diff --git a/services/transaction/test b/services/wishlist/test similarity index 100% rename from services/transaction/test rename to services/wishlist/test