Skip to content

Commit

Permalink
Release when tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrSaber committed Sep 6, 2024
1 parent 238783f commit 8a1694a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/push-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Create and publish a Docker image

on:
push:
branches:
- master
workflow_run:
workflows: [Run tests]
types: [completed]
branches: [master]

env:
REGISTRY: ghcr.io
Expand All @@ -12,6 +13,7 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
Expand Down

0 comments on commit 8a1694a

Please sign in to comment.