Skip to content

Commit

Permalink
fix: remove invalid variable from ci and fix mapcopy function.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-git committed Sep 21, 2024
1 parent 7fde26a commit 1b542cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Docker build & push

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
Expand Down Expand Up @@ -77,5 +77,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ (github.event_name != 'pull_request' || inputs.force_docker_push == true ) && inputs.dry_run != true }}
tags: '${{ steps.meta.outputs.tags || inputs.tags }}${{ matrix.image_suffix }}'
tags: '${{ steps.meta.outputs.tags || inputs.tags }}'
labels: ${{ steps.meta.outputs.labels || inputs.labels }}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (c *dockerHealthCollector) collectMetrics(ch chan<- prometheus.Metric) {
}
mapcopy := func(src map[string]string) prometheus.Labels {
dst := map[string]string{}
for k, v := range labels {
for k, v := range src {
dst[k] = v
}
return dst
Expand Down

0 comments on commit 1b542cf

Please sign in to comment.