Skip to content

Commit

Permalink
test "final" version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgubler committed Jul 8, 2024
1 parent 5b4b69d commit 0007cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ runs:
shell: bash
- run: |
echo "NAMESPACE=$(yq '.contexts.0.context.namespace' ${KUBECONFIG})" >> $GITHUB_ENV
echo "CI_COMMIT_REF_SLUG=$(echo '${{ github.ref_name }}' | sed -e 's/.*/\L&/' -e 's/[^a-z0-9]/-/g' -e 's/^[0-9-]*//' -e 's/-*$//' -e 's/-\+/-/g')" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "delete" ]; then
echo "CI_COMMIT_REF_SLUG=$(echo '${{ github.event.ref }}' | sed -e 's,^/ref/[a-z]\+/,,' | sed -e 's/.*/\L&/' -e 's/[^a-z0-9]/-/g' -e 's/^[0-9-]*//' -e 's/-*$//' -e 's/-\+/-/g')" >> $GITHUB_ENV
REF="$(echo '${{ github.event.ref }}' | sed -e 's,^/ref/[a-z]\+/,,')"
else
echo "CI_COMMIT_REF_SLUG=$(echo '${{ github.ref_name }}' | sed -e 's/.*/\L&/' -e 's/[^a-z0-9]/-/g' -e 's/^[0-9-]*//' -e 's/-*$//' -e 's/-\+/-/g')" >> $GITHUB_ENV
REF="$(echo '${{ github.ref_name }}')"
fi
echo "CI_COMMIT_REF_SLUG=$(echo "${REF}" | sed -e 's/.*/\L&/' -e 's/[^a-z0-9]/-/g' -e 's/^[0-9-]*//' -e 's/-*$//' -e 's/-\+/-/g')" >> $GITHUB_ENV
echo "CI_PROJECT_NAME=$(echo '${{ github.repository }}' | sed -e 's/^[^\/]\+\///')" >> $GITHUB_ENV
shell: bash
using: composite
2 changes: 1 addition & 1 deletion .github/workflows/test-stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- env: {}
name: k8ify stop
run: |
kubectl delete deployments,statefulsets,secrets,persistentvolumeclaims,ingresses,services,cronjobs -l "k8ify.ref-slug=${CI_COMMIT_REF_SLUG}"
kubectl delete deployments,statefulsets,secrets,persistentvolumeclaims,ingresses,services,cronjobs,poddisruptionbudgets -l "k8ify.ref-slug=${CI_COMMIT_REF_SLUG}"
kubectl delete claim -l "k8ify.ref-slug=${CI_COMMIT_REF_SLUG}" || true
name: Stop test
"on":
Expand Down

0 comments on commit 0007cd3

Please sign in to comment.