From f146af7f214cb973c255dfff841a8058180e8d16 Mon Sep 17 00:00:00 2001 From: insinnox Date: Fri, 9 Aug 2024 18:35:15 +0200 Subject: [PATCH] update cd.yml --- .github/workflows/cd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2d294b2..5f29107 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -71,8 +71,7 @@ jobs: username: ${{ env.SSH_USER }} key: ${{ env.SSH_PRIVATE_KEY }} script: | - docker container rm -f ${{ env.IMAGE_NAME }} 2> /dev/null || true - docker image rm ghcr.io/${{ steps.lower-repo.outputs.repository }}:latest 2> /dev/null || true + docker compose down echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin docker compose up -d rm -rf docker-compose.yml