Run CI on pushes to master branch

Required to keep container image (with "latest" tag) up to date. Will
also ensure the master branch is healthy after PR merges.

Signed-off-by: Ben Reedy <breed808@breed808.com>
This commit is contained in:
Ben Reedy 2022-02-18 22:29:34 +10:00
parent 5106b829c3
commit 5a9711dc90
No known key found for this signature in database
GPG Key ID: 235C15B6086C9D7E
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
name: windows_exporter CI/CD
# Trigger on pull requests and releases
# Trigger on pull requests, releases and pushes to master branch.
# Deployments will only occur for releases (see `if` clauses in the build job).
on:
push:
branches:
- master
pull_request:
branches:
- master
@ -170,7 +173,7 @@ jobs:
promu checksum output\
- name: Login to GitHub container registry
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
with:
registry: ghcr.io