From c80bf88ceac28ecd22237d6bdd5a3634f5122c1c Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Sun, 30 Jun 2024 20:41:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Deploy=20built=20container=20ima?= =?UTF-8?q?ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index ffeef98..b3adcc1 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -36,3 +36,18 @@ jobs: - name: Inspect run: | docker buildx imagetools inspect code.f2n.me/finn/matrix-bot-invitation-mailer:latest + - name: Deploy + uses: tristiisch/docker-stack-deployment@v2 + with: + remote_docker_host: home.finnchristiansen.de + remote_docker_port: 44022 + remote_docker_username: deploy + ssh_private_key: ${{ secrets.DOCKER_RPI4_SSH_PRIVATE_KEY }} + ssh_public_key: ${{ secrets.DOCKER_RPI4_SSH_PUBLIC_KEY }} + deployment_mode: docker-compose + copy_stack_file: false + deploy_path: /opt/stacks/matrix-bot-invitation-mailer + stack_file_path: ./compose.yaml + keep_files: 5 + docker_remove_orphans: true + args: ""