Browse Source

Try to cirvumvent possible YAML escaping issue

master
Fábio Kaiser Rauber 5 months ago
parent
commit
db696e15f6
  1. 10
      .drone.yml

10
.drone.yml

@ -7,7 +7,7 @@ steps:
- name: lint-charts
image: alpine/helm:latest
commands:
- find charts -maxdepth 2 -type d -regex ".*/v[0-9]+\.[0-9]+\.[0-9]+" -exec helm lint {} \;
- find charts -maxdepth 2 -type d | grep "/v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+$" | xargs -I {} helm lint {}
# Step 2: Package only changed Helm charts
- name: package-all-charts
@ -19,14 +19,8 @@ steps:
- ls -la .
- echo "Charts directory contents:"
- ls -la charts/ || echo "No charts/ directory found"
# Debug: List contents of charts/clamav/
- echo "Contents of charts/clamav/:"
- ls -la charts/clamav/ || echo "No clamav directory found"
# Debug: Explicitly check for v0.1.0 in clamav
- echo "Contents of charts/clamav/v0.1.0/:"
- ls -la charts/clamav/v0.1.0/ || echo "No v0.1.0 directory found in charts/clamav/"
# Find all versioned chart directories
- ALL_CHARTS=$$(find charts -maxdepth 2 -type d -regex '.*/v[0-9]+\.[0-9]+\.[0-9]+')
- ALL_CHARTS=$(find charts -maxdepth 2 -type d | grep "/v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+$")
- "echo \"Detected charts: $ALL_CHARTS\""
- if [ -n "$ALL_CHARTS" ]; then echo "$ALL_CHARTS" | xargs -I {} helm package {} --destination charts/dist; else echo "No charts found in repository"; exit 1; fi
# Debug: List packaged files

Loading…
Cancel
Save