Update CI related stuff
This commit is contained in:
parent
51b5ea73cf
commit
c4d5115711
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin
|
@ -29,7 +29,7 @@ steps:
|
|||||||
- helm repo add badhouseplants-lib-testing https://git.badhouseplants.net/api/packages/badhouseplants/helm
|
- helm repo add badhouseplants-lib-testing https://git.badhouseplants.net/api/packages/badhouseplants/helm
|
||||||
- |
|
- |
|
||||||
if [ -s .changed ]; then
|
if [ -s .changed ]; then
|
||||||
ct lint --target-branch main --validate-maintainers=false
|
./scripts/lint.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@ -47,10 +47,8 @@ steps:
|
|||||||
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||||
k3d cluster create test --api-port 16443 --k3s-arg="kubelet-args=\"--allowed-unsafe-sysctls=net.ipv4.ip_forward\""@all
|
k3d cluster create test --api-port 16443 --k3s-arg="kubelet-args=\"--allowed-unsafe-sysctls=net.ipv4.ip_forward\""@all
|
||||||
sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' ~/.kube/config
|
sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' ~/.kube/config
|
||||||
kubectl get storageclass
|
|
||||||
git fetch origin
|
git fetch origin
|
||||||
ct install --target-branch main
|
./scripts/test.sh
|
||||||
ct install --target-branch main --upgrade
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
11
scripts/lint.sh
Executable file
11
scripts/lint.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CHANGED_CHARTS=$(ct list-changed)
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
for CHART in $CHANGED_CHARTS; do
|
||||||
|
cd "${CHART}"
|
||||||
|
helm dependency update
|
||||||
|
ct lint --target-branch main --validate-maintainers=false
|
||||||
|
cd "${CURRENT_DIR}"
|
||||||
|
done
|
16
scripts/test.sh
Executable file
16
scripts/test.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CHANGED_CHARTS=$(ct list-changed)
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
for CHART in $CHANGED_CHARTS; do
|
||||||
|
cd "${CHART}"
|
||||||
|
helm dependency update
|
||||||
|
if [[ "$(helm show chart . | yq '.annotations.skip_tests')" != "true" ]]; then
|
||||||
|
ct install --target-branch main
|
||||||
|
ct install --target-branch main --upgrade
|
||||||
|
else
|
||||||
|
echo "skipping chart because of the skip_test annotation"
|
||||||
|
fi
|
||||||
|
cd "${CURRENT_DIR}"
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user