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

Commit

Permalink
fix: argocd authentication error (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: amber <>
  • Loading branch information
z1yoon authored Nov 16, 2024
1 parent a86cd23 commit 97fb3ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
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.

0 comments on commit 97fb3ce

Please sign in to comment.