51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
|
|
- name: Login to GitHub container registry
|
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.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@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.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' }}
|