diff --git a/.github/workflows/deployk8s.yaml b/.github/workflows/deployk8s.yaml index 2b4906e..bfc3b20 100644 --- a/.github/workflows/deployk8s.yaml +++ b/.github/workflows/deployk8s.yaml @@ -47,11 +47,23 @@ jobs: with: version: 2.13.3 command: app set ${{ inputs.environment }} --parameter images.${{github.event.repository.name}}=${{ inputs.tag }} + - name: Migrate + if: ${{ inputs.migrate == 'true' }} + uses: clowdhaus/argo-cd-action/@main + with: + version: 2.13.3 + command: app set ${{ inputs.environment }} --parameter migrations.${{github.event.repository.name}}=PreSync - name: Sync changes uses: clowdhaus/argo-cd-action/@main with: version: 2.13.3 command: app sync ${{ inputs.environment }} + - name: Migrate + if: ${{ inputs.migrate == 'true' }} + uses: clowdhaus/argo-cd-action/@main + with: + version: 2.13.3 + command: app unset ${{ inputs.environment }} --parameter migrations.${{github.event.repository.name}} notify: needs: [deploy] if: always()