Skip to content

Commit

Permalink
add auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Jan 11, 2024
1 parent 91ee523 commit ec3e8ab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
default: latest

concurrency:
group: development
cancel-in-progress: true

jobs:
deploy:
permissions: read-all
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/deploy_dev_auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to dev
on:
workflow_run:
workflows: [Build and publish]
types: [completed]
branches: [master]

concurrency:
group: development
cancel-in-progress: true

jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' }}
permissions: read-all
uses: ./.github/workflows/deploy_reusable_workflow.yml
with:
deployVersion: latest
environment: kogda-dev
environment_url: https://dev.kogra-igra.ru
secrets: inherit

0 comments on commit ec3e8ab

Please sign in to comment.