Update app-with-argocd-basic.yaml #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: App With Github Actions with ArgoCD Basic | |
| on: | |
| # workflow_dispatch | |
| push | |
| jobs: | |
| arcocd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: | |
| ref: main | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Set up Image | |
| run: | | |
| sed -i "s%image: nginx:1.25%image: nginx:latest%" ./argocd-deployment.yaml | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.email "sina@dankook.ac.kr" | |
| git config --local user.name "sinascode" | |
| git add . | |
| git commit -m "Update nginx image to latest" | |
| git push |