From 1e70429f357cadc58f5d34c5a4296fdfb871a371 Mon Sep 17 00:00:00 2001 From: msm1984 Date: Tue, 27 Aug 2024 22:29:17 +0330 Subject: [PATCH] fix: fix nginx config --- .github/workflows/CD_Frontend.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD_Frontend.yml b/.github/workflows/CD_Frontend.yml index cc67eb8..a33122e 100644 --- a/.github/workflows/CD_Frontend.yml +++ b/.github/workflows/CD_Frontend.yml @@ -8,6 +8,8 @@ on: jobs: version-and-release: runs-on: ubuntu-latest + outputs: + frontimage_version: ${{ steps.tag_version.outputs.new_tag }} steps: - name: Checkout code @@ -62,10 +64,10 @@ jobs: - name: Update Angular Image Tag in Helm Chart run: | cd Summer1403-Project-Group01-Deployment/mychart - sed -i 's|image: mohammadsadeghmontazeri/starfront:.*|image: mohammadsadeghmontazeri/starfront:${{ steps.tag_version.outputs.new_tag }}|' values.yaml + sed -i 's|image: mohammadsadeghmontazeri/starfront:.*|image: mohammadsadeghmontazeri/starfront:${{ needs.version-and-release.outputs.frontimage_version }}|' values.yaml git config --global user.email "sadeghmomo2020@gmail.com" git config --global user.name "msm1984" - git commit -am "Update Angular image tag to ${{ steps.tag_version.outputs.new_tag }}" + git commit -am "Update Angular image tag to ${{ needs.version-and-release.outputs.frontimage_version }}" - name: Push to Deployment Repository run: |