Skip to content

Commit a268a51

Browse files
CopilotPhantomDave
andauthored
[WIP] Add script to clean old images during deploy (#52)
* Initial plan * Add Docker image cleanup step to deployment workflow Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
1 parent 2c90485 commit a268a51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy-tailscale.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ jobs:
123123
tailscale ssh "${{ steps.ssh.outputs.target }}" \
124124
"echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin"
125125
126+
- name: Clean up old Docker images
127+
run: |
128+
tailscale ssh "${{ steps.ssh.outputs.target }}" \
129+
"docker system prune -af --filter 'until=24h'"
130+
126131
- name: Pull latest images
127132
run: |
128133
tailscale ssh "${{ steps.ssh.outputs.target }}" \

0 commit comments

Comments
 (0)