25 lines
No EOL
714 B
YAML
25 lines
No EOL
714 B
YAML
on:
|
|
push:
|
|
branches: ['master']
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- id: make_version_string
|
|
uses: ./.github/actions/make-version-string
|
|
with:
|
|
assemblyInfoPath: AssemblyInfo.cs
|
|
primaryBranch: 'latest'
|
|
- uses: ./.github/actions/expand-tokens
|
|
env:
|
|
VERSIONSTRING: ${{ steps.make_version_string.outputs.versionstring }}
|
|
with:
|
|
path: Constants.cs
|
|
- name: Publish to Registry
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
with:
|
|
name: prometheusnet/docker_exporter:cb
|
|
username: prometheusnet
|
|
password: ${{ secrets.docker_hub_token }}
|
|
snapshot: true |