-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (42 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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