Skip to content

Commit

Permalink
github workflow: fix docker-ghcrio workflow to run only on tag events
Browse files Browse the repository at this point in the history
  • Loading branch information
Civil committed May 23, 2022
1 parent 2456581 commit 73b6533
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docker-ghcrio.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: Upload Docker images to ghcr.io
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
workflow_run:
workflows: ["Tests"]
branches: [ main ]
tags: [ 'v*' ]
types:
- completed
jobs:
docker:
name: Build image
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down

0 comments on commit 73b6533

Please sign in to comment.