Merge branch 'feature/updates_gitea_workflow' into master
Continuous Integration / config (push) Successful in 11s
Continuous Integration / prepare (push) Successful in 1m12s
Continuous Integration / config (pull_request) Successful in 9s
Continuous Integration / prepare (pull_request) Successful in 1m12s
Continuous Integration / build (push) Successful in 1m44s
Continuous Integration / build (pull_request) Successful in 1m46s
Continuous Integration / test (push) Successful in 1m42s
Continuous Integration / test (pull_request) Successful in 1m43s
Continuous Integration / deploy-test (pull_request) Skipped
Deploy / deploy (push) Successful in 37s
Continuous Integration / deploy-test (push) Successful in 38s

This commit is contained in:
2026-07-24 17:56:39 +02:00
+15 -10
View File
@@ -28,14 +28,19 @@ jobs:
# bijbehorende nginx-voorbeeldconfiguratie). Inloggegevens komen uit # bijbehorende nginx-voorbeeldconfiguratie). Inloggegevens komen uit
# Gitea Actions Secrets (wachtwoord-login voor nu; zie # Gitea Actions Secrets (wachtwoord-login voor nu; zie
# deployment-instructions.md voor hoe je later naar een SSH-key omzet). # 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 - name: Upload dist to ${{ inputs.environment }} web server via SCP
uses: appleboy/scp-action@v0.1.7 run: |
with: sudo apt-get update && sudo apt-get install -y sshpass
host: ${{ secrets.PI_MAIN_HOST }} sshpass -p "${{ secrets.PI_MAIN_PASSWORD }}" scp \
port: ${{ secrets.PI_MAIN_PORT }} -P ${{ secrets.PI_MAIN_PORT }} \
username: ${{ secrets.PI_MAIN_USERNAME }} -o StrictHostKeyChecking=no \
password: ${{ secrets.PI_MAIN_PASSWORD }} -r ${{ inputs.artifact_name }}/* \
source: "${{ inputs.artifact_name }}/*" ${{ secrets.PI_MAIN_USERNAME }}@${{ secrets.PI_MAIN_HOST }}:${{ inputs.deploy_path }}
target: ${{ inputs.deploy_path }}
strip_components: 1
overwrite: true