Skip to content

deps: update Go indirect dependencies #996

deps: update Go indirect dependencies

deps: update Go indirect dependencies #996

name: imagepuller benchmark
on:
workflow_dispatch:
pull_request:
paths:
- imagepuller/**
- tools/imagepuller-benchmark/**
- packages/by-name/imagepuller*/**
push:
branches:
- main
jobs:
run-benchmark:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: read
id-token: write
env:
SET: base
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/setup_nix
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Log in to ghcr.io Container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: create imagepuller configuration
run: |
auth=$(jq -r '.auths["ghcr.io"].auth' < ~/.docker/config.json)
cat > imagepuller.toml <<EOF
[registries."ghcr.io."]
auth = "$auth"
EOF
- name: Run imagepuller-benchmark script
run: nix run ".#${SET}.scripts.imagepuller-benchmark"
- name: Upload debug information
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: imagepuller-benchmark-debug-info
path: ls-lR-*.txt
if-no-files-found: ignore
- name: Notify teams channel of failure
if: failure() && github.ref == 'refs/heads/main' && github.run_attempt == 1
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
title: "Imagepuller benchmark failed"
message: "The imagepuller benchmark workflow failed on main."
additionalFields: '[{"title": "Job ID", "value": "${{ github.job }}"}]'