Skip to content

Commit b424ba0

Browse files
committed
docs: add the cleanup to the flow
1 parent 118b38a commit b424ba0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

FLOW.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ flowchart TD
2727
RemoveContainer --> StartContainer[Start New Container]
2828
StartContainer --> VerifyContainer{Verify Container Status}
2929
30-
VerifyContainer --> |"Up"| Success([Deployment Success])
30+
VerifyContainer --> |"Up"| CleanupImages[Cleanup Old Images]
31+
CleanupImages --> |"Keep Latest 5"| Success([Deployment Success])
3132
VerifyContainer --> |"Down"| Failure([Deployment Failure])
3233
end
3334

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ https://github.com/user-attachments/assets/68111156-4445-43c1-9d63-071b2680abc3
1111
- Docker installed locally and on the remote host
1212
- SSH access to the remote host
1313
- SSH key-based authentication
14+
- Go 1.21 or higher (due to usage of slices.Reverse)
1415

1516
## Installation
1617

@@ -52,7 +53,7 @@ Alternatively, you can build from source:
5253

5354
Requirements:
5455

55-
- Go 1.x or higher
56+
- Go 1.21 or higher
5657

5758
```bash
5859
git clone <repository-url>
@@ -268,6 +269,7 @@ When using Pipe as a GitHub Action, the following inputs are available:
268269
6. Stops and removes existing container
269270
7. Starts new container with specified configuration
270271
8. Verifies container is running properly
272+
9. Automatically cleans up old releases (keeps only the latest 5 images)
271273
272274
Flow chart: FLOW.md
273275

0 commit comments

Comments
 (0)