37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
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@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
|
|
|
|
- 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@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
|
|
with:
|
|
push: true
|
|
file: benchmark-overhead/Dockerfile-petclinic-base
|
|
tags: ghcr.io/open-telemetry/opentelemetry-java-instrumentation/petclinic-rest-base:${{ env.TS }}
|