fix: fixed INPUT_ARGS in the entrypoint.sh
feat: temporarily removed some tests
This commit is contained in:
parent
fbe51cd0e1
commit
c390c8d349
38
.github/workflows/tests.yaml
vendored
38
.github/workflows/tests.yaml
vendored
@ -3,44 +3,6 @@ name: tests
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
default-cmd:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
|
||||||
k3d cluster delete testing
|
|
||||||
k3d cluster create testing
|
|
||||||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g')
|
|
||||||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV
|
|
||||||
- uses: ./
|
|
||||||
get-pods:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
|
||||||
k3d cluster delete testing
|
|
||||||
k3d cluster create testing
|
|
||||||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g')
|
|
||||||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV
|
|
||||||
- uses: ./
|
|
||||||
with:
|
|
||||||
args: get pods
|
|
||||||
multiply:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
|
||||||
k3d cluster delete testing
|
|
||||||
k3d cluster create testing
|
|
||||||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g')
|
|
||||||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV
|
|
||||||
- uses: ./
|
|
||||||
- uses: ./
|
|
||||||
with:
|
|
||||||
args: get pods
|
|
||||||
kustomize:
|
kustomize:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -7,7 +7,7 @@ branding:
|
|||||||
inputs:
|
inputs:
|
||||||
args:
|
args:
|
||||||
description: 'Arguments for the CLI command'
|
description: 'Arguments for the CLI command'
|
||||||
required: true
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
@ -30,11 +30,11 @@ if [ ! -f "$HOME/.kube/config" ]; then
|
|||||||
|
|
||||||
kubectl config set-context default --cluster=default --namespace=default --user=cluster-admin > /dev/null
|
kubectl config set-context default --cluster=default --namespace=default --user=cluster-admin > /dev/null
|
||||||
kubectl config use-context default > /dev/null
|
kubectl config use-context default > /dev/null
|
||||||
elif [[ $INPUT_ARGS == "kustomize" ]]; then :;
|
elif [[ $* == "kustomize" ]]; then :;
|
||||||
else
|
else
|
||||||
echo "No authorization data found. Please provide KUBE_CONFIG or KUBE_HOST variables. Exiting..."
|
echo "No authorization data found. Please provide KUBE_CONFIG or KUBE_HOST variables. Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kubectl $INPUT_ARGS
|
kubectl $*
|
||||||
Loading…
Reference in New Issue
Block a user