Skip to content

chore(deps): update weekly update (#14895) #39

chore(deps): update weekly update (#14895)

chore(deps): update weekly update (#14895) #39

name: Publish PetClinic benchmark image
on:
push:
paths:
- "benchmark-overhead/Dockerfile.petclinic"
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Login to GitHub container registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create timestamp for docker image tag
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Push to GitHub packages
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
push: true
file: benchmark-overhead/Dockerfile.petclinic
tags: ghcr.io/open-telemetry/opentelemetry-java-instrumentation/petclinic-rest-base:${{ env.TS }}
workflow-notification:
permissions:
contents: read
issues: write
needs:
- publish
if: always()
uses: ./.github/workflows/reusable-workflow-notification.yml
with:
success: ${{ needs.publish.result == 'success' }}