fix-agaix #57
@@ -41,17 +41,12 @@ runs:
|
|||||||
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 ${{github.event.repository.name}}
|
||||||
- name: Sync changes
|
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
|
||||||
with:
|
|
||||||
version: 3.1.3
|
|
||||||
command: app sync ${{ inputs.environment }} --resource apps:Deployment:${{ github.event.repository.name }}*
|
|
||||||
- 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 ${{ github.event.repository.name }} | awk '{print($4)}'); do
|
||||||
echo "Syncing $name"
|
echo "Syncing $name"
|
||||||
argocd app sync ${{ inputs.environment }} --resource "$name"
|
argocd app sync ${{ inputs.environment }} --resource apps:Deployment:$name;
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Refresh secret
|
- name: Refresh secret
|
||||||
|
|||||||
Reference in New Issue
Block a user