Skip to content

Commit

Permalink
Merge pull request #26 from Star-Academy/fixcicd
Browse files Browse the repository at this point in the history
fix: fix nginx config
  • Loading branch information
msm1984 authored Aug 27, 2024
2 parents 97e8859 + 1e70429 commit 25668b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CD_Frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "[email protected]"
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: |
Expand Down

0 comments on commit 25668b6

Please sign in to comment.