26 lines
686 B
YAML
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!"
|