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:
|
with:
|
||||||
version: 2.13.3
|
version: 2.13.3
|
||||||
command: app set ${{ inputs.environment }} --parameter images.${{github.event.repository.name}}=${{ inputs.tag }}
|
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
|
- name: Sync changes
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.3
|
version: 2.13.3
|
||||||
command: app sync ${{ inputs.environment }}
|
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:
|
notify:
|
||||||
needs: [deploy]
|
needs: [deploy]
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user