37 lines
1.1 KiB
YAML
37 lines
1.1 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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
|
|
|
- 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 }}
|