Update .gitea/actions/k8s/action.yaml

This commit is contained in:
2025-12-19 12:48:48 +00:00
parent 26d0ef1b21
commit 04914682ab

View File

@@ -40,23 +40,23 @@ runs:
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app set ${{ inputs.environment }} --parameter images.${{github.event.repository.name}}=${{ inputs.tag }} command: app set ${{ inputs.environment }} --parameter ${{ inputs.optionName }}=${{ inputs.tag }}
- name: Sync changes - name: Sync changes
if: ${{ inputs.migrate == 'true' }} if: ${{ inputs.migrate == 'true' }}
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app sync ${{ inputs.environment }} --resource apps:Deployment:${{github.event.repository.name}} command: app sync ${{ inputs.environment }} --resource apps:Deployment:${{ inputs.appName }}
- name: Migrate - name: Migrate
if: ${{ inputs.migrate == 'true' }} if: ${{ inputs.migrate == 'true' }}
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app actions run ${{ inputs.environment }} migrate --kind Deployment --resource-name ${{github.event.repository.name}} command: app actions run ${{ inputs.environment }} migrate --kind Deployment --resource-name ${{ inputs.appName }}
- name: Sync related deployments - name: Sync related deployments
shell: bash shell: bash
run: | run: |
for name in $(argocd app resources ${{ inputs.environment }} | grep Deploy | grep ${{ github.event.repository.name }} | awk '{print($4)}'); do for name in $(argocd app resources ${{ inputs.environment }} | grep Deploy | grep ${{ inputs.appName }} | awk '{print($4)}'); do
echo "Syncing $name" echo "Syncing $name"
argocd app sync ${{ inputs.environment }} --resource apps:Deployment:$name; argocd app sync ${{ inputs.environment }} --resource apps:Deployment:$name;
done done
@@ -65,15 +65,15 @@ runs:
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app actions run ${{ inputs.environment }} refresh --kind ExternalSecret --resource-name vault-${{github.event.repository.name}} command: app actions run ${{ inputs.environment }} refresh --kind ExternalSecret --resource-name vault-${{ inputs.appName }}
- name: Restart service - name: Restart service
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app actions run ${{ inputs.environment }} restart --kind Deployment --resource-name ${{github.event.repository.name}} command: app actions run ${{ inputs.environment }} restart --kind Deployment --resource-name ${{ inputs.appName }}
- name: Run Tests - name: Run Tests
if: ${{ inputs.tests == 'true' }} if: ${{ inputs.tests == 'true' }}
uses: clowdhaus/argo-cd-action/@main uses: clowdhaus/argo-cd-action/@main
with: with:
version: 3.1.3 version: 3.1.3
command: app actions run ${{ inputs.environment }} run-tests --kind Deployment --resource-name ${{github.event.repository.name}} command: app actions run ${{ inputs.environment }} run-tests --kind Deployment --resource-name ${{ inputs.appName }}