-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (68 loc) · 2.02 KB
/
installation-test.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Installation Tests
on:
release:
types: [released]
env:
REPOSITORY_OWNER: "kaytu-io"
HOMEBREW_TAP: "cli-tap"
jobs:
Version-from-tag:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.remove_tag.outputs.version }}
steps:
- name: Remove tag
id: remove_tag
run: |
TAG=${{ github.event.release.tag_name }}
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
Deb-Package:
runs-on: ubuntu-latest
container: debian
needs:
- Version-from-tag
steps:
- name: Setup image
run: |
apt update
apt install wget -y
- name: Download Release
run: wget https://github.com/kaytu-io/kaytu/releases/download/${{ github.event.release.tag_name }}/kaytu_${{ needs.Version-from-tag.outputs.version }}_linux_amd64.deb
- name: Install Kaytu
run: |
dpkg -i kaytu_${{ needs.Version-from-tag.outputs.version }}_linux_amd64.deb
kaytu
- name: Print Kaytu Version
run: kaytu version
RPM-Package:
runs-on: ubuntu-latest
container: redhat/ubi8:latest
needs:
- Version-from-tag
- Deb-Package
steps:
- name: Setup image
run: |
yum install wget -y
- name: Download Release
run: wget https://github.com/kaytu-io/kaytu/releases/download/${{ github.event.release.tag_name }}/kaytu_${{ needs.Version-from-tag.outputs.version }}_linux_amd64.rpm
- name: Install Kaytu
run: |
rpm -i kaytu_${{ needs.Version-from-tag.outputs.version }}_linux_amd64.rpm
kaytu
- name: Print Kaytu Version
run: kaytu version
Homebrew:
runs-on: macos-latest
if: always()
needs:
- RPM-Package
steps:
- name: Tap Kaytu's cli-tap
run: brew tap ${{ env.REPOSITORY_OWNER }}/${{ env.HOMEBREW_TAP }}
- name: Install Kaytu
run: |
brew install kaytu
kaytu
- name: Print Kaytu Version
run: kaytu version