mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-09 20:16:35 +00:00
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:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -1,8 +1,11 @@
|
|||||||
name: windows_exporter CI/CD
|
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).
|
# Deployments will only occur for releases (see `if` clauses in the build job).
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -170,7 +173,7 @@ jobs:
|
|||||||
promu checksum output\
|
promu checksum output\
|
||||||
|
|
||||||
- name: Login to GitHub container registry
|
- name: Login to GitHub container registry
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
|||||||
Reference in New Issue
Block a user