Skip to content

Commit

Permalink
chore(docker): docker system prune to avoid filling up the disk
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisDommer committed Jan 5, 2024
1 parent 17cd51b commit b16c1b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/playground_deployment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ jobs:
rsync -avz --update ./WebSocketClient $USERNAME@$HOSTNAME:$WORKDIR
rsync -avz --update ./docker-compose.yaml $USERNAME@$HOSTNAME:$WORKDIR
rsync -avz --update ./.env $USERNAME@$HOSTNAME:$WORKDIR
- name: Remove spare Docker Images
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'docker system prune -f'
- name: Build and run containers
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'pwd && docker compose up --build -d'
2 changes: 2 additions & 0 deletions .github/workflows/playground_deployment_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ jobs:
rsync -avz --update ./WebSocketClient $USERNAME@$HOSTNAME:$WORKDIR
rsync -avz --update ./docker-compose.yaml $USERNAME@$HOSTNAME:$WORKDIR
rsync -avz --update ./.env $USERNAME@$HOSTNAME:$WORKDIR
- name: Remove spare Docker Images
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'docker system prune -f'
- name: Build and run containers
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'pwd && docker compose up --build -d'

0 comments on commit b16c1b4

Please sign in to comment.