From b16c1b4c688a1d2ba432820e397769e9f248b2de Mon Sep 17 00:00:00 2001 From: JannisDommer Date: Fri, 5 Jan 2024 10:18:06 +0100 Subject: [PATCH] chore(docker): docker system prune to avoid filling up the disk --- .github/workflows/playground_deployment_dev.yml | 2 ++ .github/workflows/playground_deployment_prod.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/playground_deployment_dev.yml b/.github/workflows/playground_deployment_dev.yml index f2154ef..a07e42f 100644 --- a/.github/workflows/playground_deployment_dev.yml +++ b/.github/workflows/playground_deployment_dev.yml @@ -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' diff --git a/.github/workflows/playground_deployment_prod.yml b/.github/workflows/playground_deployment_prod.yml index 199413d..72aa30c 100644 --- a/.github/workflows/playground_deployment_prod.yml +++ b/.github/workflows/playground_deployment_prod.yml @@ -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'