From d6f9924a5cb0390608d384784c6d76ff6a3c1797 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Mon, 1 Jul 2024 22:50:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Try=20another=20approach=20for?= =?UTF-8?q?=20update=20container=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/ci.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index c4cdcf0..01b3555 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -37,15 +37,14 @@ jobs: run: | docker buildx imagetools inspect code.f2n.me/finn/matrix-bot-invitation-mailer:latest - - name: Deploy - uses: https://github.com/keatonLiu/docker-compose-remote-action@master + - name: Do Docker Compose Pull via SSH + uses: https://github.com/appleboy/ssh-action@v1.0.3 with: - ssh_host: home.finnchristiansen.de - ssh_port: 44022 - ssh_user: deploy - ssh_private_key: ${{ secrets.DOCKER_RPI4_SSH_PRIVATE_KEY }} - ssh_host_public_key: ${{ secrets.DOCKER_RPI4_SSH_PUBLIC_KEY }} - workspace: /opt/stacks/matrix-bot-invitation-mailer - docker_compose_filename: compose.yml - workspace_keep: true - docker_args: -d --remove-orphans + key: ${{ secrets.DOCKER_RPI4_SSH_PRIVATE_KEY }} + fingerprint: ${{ secrets.DOCKER_RPI4_SSH_PUBLIC_KEY }} + host: home.finnchristiansen.de + username: dploy + port: 44022 + script: | + cd /opt/stacks/matrix-bot-invitation-mailer + docker compose pull && docker compose up -d --force-recreate