Skip to content

update upstream (#551) #12

update upstream (#551)

update upstream (#551) #12

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
- id: push-to-docker
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=semver,pattern={{version}}" # see https://github.com/docker/metadata-action?tab=readme-ov-file#typesemver
"latest"
environment: "prod"
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
agent/build/libs/grafana-opentelemetry-java.jar
LICENSE