Skip to content

fix release.yml

fix release.yml #13

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Setup Gradle and run build
uses: gradle/[email protected]
with:
arguments: build -x test
- name: Push to Docker (for OpenTelemetry Operator)
uses: grafana/shared-workflows/actions/push-to-gar-docker@main
with:
registry: "us-docker.pkg.dev"
image_name: grafana-opentelemetry-java
context: .
file: scripts/otel_operator/Dockerfile
tags: |
type=match,pattern=v(.*),group=1
latest
environment: "prod"
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
agent/build/libs/grafana-opentelemetry-java.jar
LICENSE