diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51727e6d3..ae4d97f0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,6 +147,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Push Latest image + if: ${{ github.event_name != 'pull_request' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION=latest make push-all + - name: Release if: startsWith(github.ref, 'refs/tags/') env: diff --git a/Makefile b/Makefile index 0313a5c41..94c06d6ff 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export GOOS=windows export DOCKER_IMAGE_NAME ?= windows-exporter export DOCKER_REPO ?= ghcr.io/prometheus-community -VERSION=$(shell cat VERSION) +VERSION?=$(shell cat VERSION) DOCKER?=docker # Image Variables for Hostprocess Container diff --git a/kubernetes/kubernetes.md b/kubernetes/kubernetes.md index db39abca1..be454b87c 100644 --- a/kubernetes/kubernetes.md +++ b/kubernetes/kubernetes.md @@ -41,6 +41,8 @@ This create a deployment on every node. A config map is created for to handle th kubectl apply -f kubernetes/windows-exporter-daemonset.yaml ``` +> Note: This example manifest deploys the latest bleeding edge image `ghcr.io/prometheus-community/windows-exporter:latest` built from the main branch. You should update this to use a released version which you can find at https://github.com/prometheus-community/windows_exporter/releases + #### Configuring the firewall The firewall on the node needs to be configured to allow connections on the node: `New-NetFirewallRule -DisplayName 'windows-exporter' -Direction inbound -Profile Any -Action Allow -LocalPort 9182 -Protocol TCP` diff --git a/kubernetes/windows-exporter-daemonset.yaml b/kubernetes/windows-exporter-daemonset.yaml index 134709896..a87a09f7a 100644 --- a/kubernetes/windows-exporter-daemonset.yaml +++ b/kubernetes/windows-exporter-daemonset.yaml @@ -28,7 +28,7 @@ spec: - args: - --config.file=%CONTAINER_SANDBOX_MOUNT_POINT%/config.yml name: windows-exporter - image: jsturtevant/windows-exporter:latest + image: ghcr.io/prometheus-community/windows-exporter:latest imagePullPolicy: Always ports: - containerPort: 9182