add migrations
This commit is contained in:
12
.github/workflows/deployk8s.yaml
vendored
12
.github/workflows/deployk8s.yaml
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user