Skip to content

Commit

Permalink
ci(deploy): only run when ci completes successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Sep 9, 2024
1 parent 0c6be6d commit 9b8128e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Build and upload Docker image
name: Deploy Docker image

on:
push:
workflow_run:
workflows:
- ci
branches:
- main
types:
- completed

jobs:
buildx:
if: ${{ github.event.workflow_run.conclusion == 'success' }}

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- id: buildx
uses: docker/setup-buildx-action@v3

- name: Build images
env:
Expand Down

0 comments on commit 9b8128e

Please sign in to comment.