Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

Staging #90

Merged
merged 22 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
build-args: |
NEXT_PUBLIC_API_BASE_URL=${{ secrets.NEXT_PUBLIC_API_BASE_URL }}

update-and-sync:
name: Update Helm Manifests
update:
name: Update and Sync Image Tag in ArgoCD
runs-on: ubuntu-latest
container:
image: argoproj/argocd
Expand All @@ -82,25 +82,26 @@ jobs:
strategy:
matrix:
service: ${{ fromJson(needs.changes.outputs.services) }}

steps:
- name: Check out code
- name: Checkout Code Repository
uses: actions/checkout@v4

- name: Update Image Tag Values
- name: Generate New Image Tag
run: |
new_image_tag=${{ matrix.service }}-${{ github.sha }}
echo "new_image_tag=$new_image_tag" >> $GITHUB_ENV

- name: Login to ArgoCD
- name: Authenticate to ArgoCD
run: |
argocd login argocd.nshm.store \
--username admin \
--password ${{ secrets.ARGOCD_PASSWORD }} \
--insecure
continue-on-error: true

- name: Apply Changes with ArgoCD CLI
- name: Update ArgoCD Application with New Image Tag
run: |
argocd app set nshm-$GITHUB_REF_NAME \
--helm-set ${{ matrix.service }}.image.tag=${{ env.new_image_tag }}
argocd app get nshm-$GITHUB_REF_NAME -o yaml
continue-on-error: true
Empty file removed services/account/test
Empty file.
Loading