forked from kloudsense/cloudera_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.64 KB
/
snapshot-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
46
47
48
on:
workflow_dispatch:
push:
jobs:
build-rpm: # a free machine-readable name for this job
uses: ./.github/workflows/build-rpm.yml
secrets: inherit
release-stable-version:
needs: build-rpm
if: ${{ needs.build-rpm.outputs.stable_release }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: ${{ needs.build-rpm.outputs.rpm_name}}
id: artifact
- uses: "marvinpinto/action-automatic-releases@latest"
env:
VERSION: ${{steps.build-rpm.version }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{needs.build-rpm.outputs.version }}"
prerelease: false
title: "Cloudera Exporter ${{needs.build-rpm.outputs.version}}"
files: |
${{ steps.artifact.outputs.download-path}}
release-snapshot-version:
needs: build-rpm
runs-on: ubuntu-latest # specify the base operating system
container:
image: registry.access.redhat.com/ubi8/go-toolset:1.18
options: --cpus 1 --user root
steps:
- uses: actions/download-artifact@v2
with:
name: ${{ needs.build-rpm.outputs.rpm_name}}
id: artifact
- uses: "marvinpinto/action-automatic-releases@latest"
id: github-release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-v${{needs.build-rpm.outputs.short_version}}"
prerelease: true
title: "Cloudera exporter Snapshot ${{needs.build-rpm.outputs.version}}"
files: |
${{ steps.artifact.outputs.download-path}}