Skip to content

Commit

Permalink
Add CI to telegraf (influxdata#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-vunet authored Sep 16, 2021
1 parent 727e765 commit b4bc7d9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build telegraf on push

on:
push:
branches:
- "develop"
workflow_dispatch:
env:
RUN_NUMBER: ${{ github.run_number }}
TELEGRAF_VERSION: 1.20.0 # needs to be updated manually

jobs:
prebuild:
name: Build Telegraf
runs-on: ubuntu-latest
if: github.repository_owner == 'vunetsystems'
steps:
- uses: actions/checkout@v2
- run: make telegraf
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: telegraf
tag_name: v${{ env.TELEGRAF_VERSION }}.${{ env.RUN_NUMBER }}
draft: false
prerelease: false

0 comments on commit b4bc7d9

Please sign in to comment.