diff --git a/.github/workflows/cd-dev.yaml b/.github/workflows/cd-dev.yaml index 9cf5f055..7fafa532 100644 --- a/.github/workflows/cd-dev.yaml +++ b/.github/workflows/cd-dev.yaml @@ -5,11 +5,14 @@ on: workflows: ["Release Image (Development)"] types: - completed + workflow_dispatch: jobs: deploy-dev: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: | + ${{ github.event_name == 'workflow_dispatch' }} + || ${{ github.event.workflow_run.conclusion == 'success' }} environment: name: development url: https://api.development.basedosdados.org diff --git a/.github/workflows/cd-prod.yaml b/.github/workflows/cd-prod.yaml index 756c8404..38044812 100644 --- a/.github/workflows/cd-prod.yaml +++ b/.github/workflows/cd-prod.yaml @@ -7,11 +7,14 @@ on: - main types: - completed + workflow_dispatch: jobs: deploy-prod: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: | + ${{ github.event_name == 'workflow_dispatch' }} + || ${{ github.event.workflow_run.conclusion == 'success' }} environment: name: production url: https://api.basedosdados.org diff --git a/.github/workflows/cd-staging.yaml b/.github/workflows/cd-staging.yaml index e2060d9b..8adedd56 100644 --- a/.github/workflows/cd-staging.yaml +++ b/.github/workflows/cd-staging.yaml @@ -7,11 +7,14 @@ on: - main types: - completed + workflow_dispatch: jobs: deploy-staging: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: | + ${{ github.event_name == 'workflow_dispatch' }} + || ${{ github.event.workflow_run.conclusion == 'success' }} environment: name: staging url: https://staging.api.basedosdados.org