Skip to content

chore(deps): update github actions (#12742) #3

chore(deps): update github actions (#12742)

chore(deps): update github actions (#12742) #3

name: Publish PetClinic benchmark image
on:
push:
paths:
- "benchmark-overhead/Dockerfile-petclinic-base"
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- name: Login to GitHub container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.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@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
push: true
file: benchmark-overhead/Dockerfile-petclinic-base
tags: ghcr.io/open-telemetry/opentelemetry-java-instrumentation/petclinic-rest-base:${{ env.TS }}