123456789101112131415161718192021222324252627282930313233343536 |
- 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@v4
- - uses: docker/setup-buildx-action@v3
- - name: Login to GitHub container registry
- uses: docker/login-action@v3
- 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@v5
- with:
- push: true
- file: benchmark-overhead/Dockerfile-petclinic-base
- tags: ghcr.io/open-telemetry/opentelemetry-java-instrumentation/petclinic-rest-base:${{ env.TS }}
|