Compare commits
5 Commits
final4
...
16231c1d55
| Author | SHA1 | Date | |
|---|---|---|---|
| 16231c1d55 | |||
| 98511aaa46 | |||
| 1bd7e2c7ab | |||
| 070fa3c928 | |||
| 71c68f7533 |
@@ -21,38 +21,38 @@ runs:
|
|||||||
- name: Argo Login
|
- name: Argo Login
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.3
|
version: 3.1.3
|
||||||
command: login
|
command: login
|
||||||
options: ${{ vars.ARGO_HOST }} --username ${{ vars.ARGO_USER }} --password ${{ fromJSON(inputs.secrets).ARGO_PASSWORD }}
|
options: ${{ vars.ARGO_HOST }} --username ${{ vars.ARGO_USER }} --password ${{ fromJSON(inputs.secrets).ARGO_PASSWORD }}
|
||||||
- name: Change tag name
|
- name: Change tag name
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.3
|
version: 3.1.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: 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: 2.13.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:${{github.event.repository.name}}
|
||||||
- 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: 2.13.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
|
- name: Sync changes
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.3
|
version: 3.1.3
|
||||||
command: app sync ${{ inputs.environment }} --resource 'apps:Deployment:*'
|
command: app sync ${{ inputs.environment }} --resource 'apps:Deployment:*'
|
||||||
- name: Refresh secret
|
- name: Refresh secret
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.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-${{github.event.repository.name}}
|
||||||
- name: Restart service
|
- name: Restart service
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
version: 2.13.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 ${{github.event.repository.name}}
|
||||||
10
.github/workflows/deploy.yaml
vendored
10
.github/workflows/deploy.yaml
vendored
@@ -30,17 +30,7 @@ jobs:
|
|||||||
CR_REPO: ${{ github.event.repository.name }}
|
CR_REPO: ${{ github.event.repository.name }}
|
||||||
TAG: ${{ inputs.tag }}
|
TAG: ${{ inputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: deploy
|
|
||||||
if: inputs.environment == 'prod' || inputs.environment == 'demo'
|
|
||||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/deploy@HEAD
|
|
||||||
with:
|
|
||||||
secrets: ${{ toJSON(secrets) }}
|
|
||||||
environment: ${{ inputs.environment }}
|
|
||||||
tag: ${{ inputs.tag }}
|
|
||||||
migrate: ${{ inputs.migrate }}
|
|
||||||
host: ${{ inputs.host }}
|
|
||||||
- name: deploy k8s
|
- name: deploy k8s
|
||||||
if: inputs.environment == 'stage'
|
|
||||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/k8s@HEAD
|
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/k8s@HEAD
|
||||||
with:
|
with:
|
||||||
secrets: ${{ toJSON(secrets) }}
|
secrets: ${{ toJSON(secrets) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user