Skip to content

Commit

Permalink
feat: update github actions (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Jan 24, 2024
1 parent 08692ec commit 0cd76c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cd-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cd-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cd76c2

Please sign in to comment.