Compare commits
No commits in common. "082c5a0672d12e9d82dd2a909b5667d9f8086d47" and "02d605d09498f1552b2949c6ef2a5faae4238e83" have entirely different histories.
082c5a0672
...
02d605d094
6 changed files with 106 additions and 33 deletions
12
.github/FUNDING.yml
vendored
Normal file
12
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: [sandersaares] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
7
.github/workflows/pr.yml
vendored
Normal file
7
.github/workflows/pr.yml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
on: [pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- run: docker build .
|
26
.github/workflows/push-to-latest.yml
vendored
Normal file
26
.github/workflows/push-to-latest.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
on:
|
||||
push:
|
||||
branches: ['latest']
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- id: make_version_string
|
||||
uses: sandersaares-actions/make-version-string@master
|
||||
with:
|
||||
assemblyInfoPath: AssemblyInfo.cs
|
||||
primaryBranch: 'latest'
|
||||
- uses: sandersaares-actions/expand-tokens@master
|
||||
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:latest
|
||||
username: prometheusnet
|
||||
password: ${{ secrets.docker_hub_token }}
|
||||
snapshot: true
|
||||
buildoptions: '--label version=${{ steps.make_version_string.outputs.versionstring }}'
|
26
.github/workflows/push-to-master.yml
vendored
Normal file
26
.github/workflows/push-to-master.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- id: make_version_string
|
||||
uses: sandersaares-actions/make-version-string@master
|
||||
with:
|
||||
assemblyInfoPath: AssemblyInfo.cs
|
||||
primaryBranch: 'latest'
|
||||
- uses: sandersaares-actions/expand-tokens@master
|
||||
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
|
||||
buildoptions: '--label version=${{ steps.make_version_string.outputs.versionstring }}'
|
|
@ -14,7 +14,8 @@ steps:
|
|||
# - linux/arm64
|
||||
# - linux/amd64
|
||||
when:
|
||||
branch: main
|
||||
branch:
|
||||
- main
|
||||
- name: docker-build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
|
@ -31,6 +32,7 @@ steps:
|
|||
dry_run: true
|
||||
when:
|
||||
branch:
|
||||
exclude: main
|
||||
exclude:
|
||||
- main
|
||||
when:
|
||||
event: push
|
||||
|
|
|
@ -8,7 +8,7 @@ RUN dotnet restore
|
|||
|
||||
# Now the code.
|
||||
COPY . .
|
||||
RUN dotnet publish --self-contained -r debian.12-x64 -c Release -o out; exit 0
|
||||
RUN dotnet publish --self-contained -r debian.12-x64 -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0-bookworm-slim AS runtime
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Add table
Reference in a new issue