Update module github.com/prometheus/client_golang to v1.23.2 - autoclosed #429
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build, Test and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v*.*.* | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version: 1.24 | |
| cache: true | |
| - name: Build All | |
| run: go build ./... | |
| - name: Run tests | |
| run: go test ./... | |
| - name: Build Binary | |
| run: go build ./cmd/masstasker | |
| - name: Info Binary | |
| run: | | |
| ./masstasker --help | |
| ./masstasker --version | |
| - uses: ko-build/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8 | |
| - name: Build OCI image using ko | |
| if: github.event.pull_request.head.repo.fork | |
| run: ko build -B --push=false --platform linux/amd64,linux/arm/v7,linux/arm64 ./cmd/masstasker | |
| - name: Build OCI image using ko and push it to ghcr | |
| if: "!github.event.pull_request.head.repo.fork" | |
| run: ko build -B --platform linux/amd64,linux/arm/v7,linux/arm64 ./cmd/masstasker | |
| - name: Build OCI image using ko , tag and push it to ghcr | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| tag=$(echo ${{ github.ref }} | cut -c11-) # get tag name without tags/refs/ prefix. | |
| ko build -B --platform linux/amd64,linux/arm/v7,linux/arm64 --tags ${tag} ./cmd/masstasker |