Files
drone_example/.drone.yml
Ondřej Hrachovina 0c83fa2dc0
Some checks failed
continuous-integration/drone/push Build is failing
Update .drone.yml
2024-11-28 17:30:05 +01:00

26 lines
686 B
YAML

---
kind: pipeline
name: hello-world-pipeline
steps:
# Step 1: Run Hello World
- name: hello-world
image: alpine:latest
commands:
- echo "Hello, World! Everything is running fine!"
# Step 2: Cleanup
- name: cleanup
image: alpine:latest
commands:
- echo "Cleaning up any created data..."
# Cleanup temporary files (adjust based on your use case)
- rm -rf /tmp/*
# Clean up unused Docker volumes
- echo "Cleaning up unused Docker volumes..."
- docker volume prune -f
# Clean up unused Docker images
- echo "Cleaning up unused Docker images..."
- docker image prune -af
- echo "Cleanup complete!"