-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
41 lines (36 loc) · 1.09 KB
/
action.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
name: 'Setup k8s tools for Studist'
description: 'Setup k8s tools for Studist'
author: 'Studist Corporation'
inputs:
kustomize:
description: 'Kustomize version'
required: true
conftest:
description: 'Conftest version'
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
KZ_PREFIX="$HOME/.cache/kz"
echo "KZ_PREFIX=$KZ_PREFIX" >> $GITHUB_ENV
echo "$KZ_PREFIX/bin" >> $GITHUB_PATH
- name: Install kz
shell: bash
run: |
curl -L https://raw.githubusercontent.com/corrupt952/kz/main/bin/kz -o kz
chmod u+x kz
mv kz /usr/local/bin
- name: Install kustomize
shell: bash
run: |
kz i ${{ inputs.kustomize }}
kustomize version
- name: Install conftest
shell: bash
run: |
wget -O /tmp/conftest.tar.gz https://github.com/instrumenta/conftest/releases/download/v${{ inputs.conftest }}/conftest_${{ inputs.conftest }}_Linux_x86_64.tar.gz
tar zxvf /tmp/conftest.tar.gz -C /tmp
mv /tmp/conftest /usr/local/bin
conftest --version