From d99ee291346e82ac4cfb7dc9cb080865a115dc27 Mon Sep 17 00:00:00 2001 From: Sluijsens <1+sluijsens@noreply@slpsoftware.nl> Date: Fri, 24 Jul 2026 17:55:54 +0200 Subject: [PATCH] Updates deploy to work with podman --- .gitea/workflows/deploy.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8c6f1f8..6cc21db 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -28,14 +28,19 @@ jobs: # bijbehorende nginx-voorbeeldconfiguratie). Inloggegevens komen uit # Gitea Actions Secrets (wachtwoord-login voor nu; zie # deployment-instructions.md voor hoe je later naar een SSH-key omzet). + # + # Let op: dit gebeurt via een gewone shell-stap in plaats van de + # appleboy/scp-action Docker-container-action. Die laatste faalt op + # deze runner met "failed to attach to container: unable to upgrade + # to tcp, received 409" - een bekende beperking van Podman's + # Docker-compatibele API, die het attach/log-streaming-mechanisme + # voor containeracties niet volledig ondersteunt. Een scp-commando + # in een normale run-stap heeft die geneste container niet nodig. - name: Upload dist to ${{ inputs.environment }} web server via SCP - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ secrets.PI_MAIN_HOST }} - port: ${{ secrets.PI_MAIN_PORT }} - username: ${{ secrets.PI_MAIN_USERNAME }} - password: ${{ secrets.PI_MAIN_PASSWORD }} - source: "${{ inputs.artifact_name }}/*" - target: ${{ inputs.deploy_path }} - strip_components: 1 - overwrite: true + run: | + sudo apt-get update && sudo apt-get install -y sshpass + sshpass -p "${{ secrets.PI_MAIN_PASSWORD }}" scp \ + -P ${{ secrets.PI_MAIN_PORT }} \ + -o StrictHostKeyChecking=no \ + -r ${{ inputs.artifact_name }}/* \ + ${{ secrets.PI_MAIN_USERNAME }}@${{ secrets.PI_MAIN_HOST }}:${{ inputs.deploy_path }}