generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 23
33 lines (29 loc) · 960 Bytes
/
tag-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
name: Tag Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
# wait for the build to succeed so that the manager image is available
- name: Wait for the image to be available in the registry
run: "./hack/await_image.sh"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
IMAGE_REPO: "europe-docker.pkg.dev/kyma-project/prod/telemetry-manager"
TRIGGER: "${{ github.ref_name }}"
QUERY_INTERVAL: 30
- name: Install tools
shell: bash
run: make install-tools
- name: Release
run: hack/release.sh ${{ github.ref_name }}
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GORELEASER_CURRENT_TAG: "${{ github.ref_name }}" # Explicitly set release tag to avoid ambiguity