From 51b5f2d942e1649e37b03b538bdd6dfb1b6d61c6 Mon Sep 17 00:00:00 2001 From: Javokhir Meliev <61313887+javokhirm@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:30:23 +0500 Subject: [PATCH] fix: remove redundant docker compose scripts on ci/cd --- .github/workflows/development.yml | 3 +-- .github/workflows/production.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 734c2ba..e14111f 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -63,7 +63,6 @@ jobs: key: ${{ secrets.EC2_PRIVATE_KEY }} port: ${{ secrets.EC2_PORT }} script: | - docker compose down - docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}} docker compose pull ${{env.DOCKER_CONTAINER_NAME}} docker compose up -d ${{env.DOCKER_CONTAINER_NAME}} + docker image prune -f diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index bc3f798..84edbf7 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -63,7 +63,6 @@ jobs: key: ${{ secrets.EC2_PRIVATE_KEY }} port: ${{ secrets.EC2_PORT }} script: | - docker compose down - docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}} docker compose pull ${{env.DOCKER_CONTAINER_NAME}} docker compose up -d ${{env.DOCKER_CONTAINER_NAME}} + docker image prune -f