Merge pull request 'master' (#3) from master into renovate/mcr.microsoft.com-dotnet-runtime-9.x
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #3
This commit is contained in:
commit
4037caa394
6 changed files with 33 additions and 106 deletions
12
.github/FUNDING.yml
vendored
12
.github/FUNDING.yml
vendored
|
@ -1,12 +0,0 @@
|
||||||
# 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
7
.github/workflows/pr.yml
vendored
|
@ -1,7 +0,0 @@
|
||||||
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
26
.github/workflows/push-to-latest.yml
vendored
|
@ -1,26 +0,0 @@
|
||||||
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
26
.github/workflows/push-to-master.yml
vendored
|
@ -1,26 +0,0 @@
|
||||||
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 }}'
|
|
|
@ -1,38 +1,36 @@
|
||||||
name: deploy
|
name: deploy
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
registry: git.ar21.de
|
registry: git.ar21.de
|
||||||
username:
|
username:
|
||||||
from_secret: REGISTRY_USER
|
from_secret: REGISTRY_USER
|
||||||
password:
|
password:
|
||||||
from_secret: REGISTRY_PASS
|
from_secret: REGISTRY_PASS
|
||||||
repo: git.ar21.de/sebleh/docker_exporter
|
repo: git.ar21.de/sebleh/docker_exporter
|
||||||
tags: latest
|
tags: latest
|
||||||
# platforms:
|
# platforms:
|
||||||
# - linux/arm64
|
# - linux/arm64
|
||||||
# - linux/amd64
|
# - linux/amd64
|
||||||
when:
|
when:
|
||||||
branch:
|
branch: main
|
||||||
- main
|
- name: docker-build
|
||||||
- name: docker-build
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
settings:
|
||||||
settings:
|
registry: git.ar21.de
|
||||||
registry: git.ar21.de
|
username:
|
||||||
username:
|
from_secret: REGISTRY_USER
|
||||||
from_secret: REGISTRY_USER
|
password:
|
||||||
password:
|
from_secret: REGISTRY_PASS
|
||||||
from_secret: REGISTRY_PASS
|
repo: git.ar21.de/sebleh/docker_exporter
|
||||||
repo: git.ar21.de/sebleh/docker_exporter
|
tags: latest
|
||||||
tags: latest
|
# platforms:
|
||||||
# platforms:
|
# - linux/arm64
|
||||||
# - linux/arm64
|
# - linux/amd64
|
||||||
# - linux/amd64
|
dry_run: true
|
||||||
dry_run: true
|
when:
|
||||||
when:
|
branch:
|
||||||
branch:
|
exclude: main
|
||||||
exclude:
|
|
||||||
- main
|
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
|
@ -8,7 +8,7 @@ RUN dotnet restore
|
||||||
|
|
||||||
# Now the code.
|
# Now the code.
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet publish --self-contained -r debian.12-x64 -c Release -o out
|
RUN dotnet publish --self-contained -r debian.12-x64 -c Release -o out; exit 0
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:9.0-bookworm-slim AS runtime
|
FROM mcr.microsoft.com/dotnet/runtime:9.0-bookworm-slim AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
Loading…
Add table
Reference in a new issue