Skip to content

Commit

Permalink
Merge pull request #109 from letehaha/fix/deploy-only-on-workflow-suc…
Browse files Browse the repository at this point in the history
…cess

Deploy to Docker only when required workflows succeed
  • Loading branch information
letehaha committed Jan 28, 2024
2 parents 5c174c5 + 51a2410 commit 85a52f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/image-to-docker-hub.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Docker Image CI
name: Deploy

on:
push:
workflow_run:
workflows: ['Lint, Test and Docker Build']
types:
- completed
branches: [main]

jobs:
build:
deploy:
runs-on: ubuntu-latest
environment: production
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Check Out Repo
Expand Down

0 comments on commit 85a52f6

Please sign in to comment.