diff --git a/.gitea/actions/deploy/action.yml b/.gitea/actions/deploy/action.yml index dc040dc..1d58ac2 100644 --- a/.gitea/actions/deploy/action.yml +++ b/.gitea/actions/deploy/action.yml @@ -24,13 +24,16 @@ inputs: description: 'Docker registry' required: false default: 'git.klemp.dev' + deployment_key: + description: 'SSH deployment private key' + required: true runs: using: 'composite' steps: - uses: webfactory/ssh-agent@v0.9.1 with: - ssh-private-key: ${{ secrets.SSH_DEPLOYMENT_KEY }} + ssh-private-key: ${{ inputs.deployment_key }} - name: Create environment file shell: bash diff --git a/.gitea/workflows/commentDeploy.yml b/.gitea/workflows/commentDeploy.yml index d839c73..aadfd15 100644 --- a/.gitea/workflows/commentDeploy.yml +++ b/.gitea/workflows/commentDeploy.yml @@ -29,3 +29,4 @@ jobs: project_name: ${{ steps.branch_name.outputs.branch_name }} url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local' image_url: ${{ steps.docker_build.outputs.image_url }} + deployment_key: ${{ secrets.SSH_DEPLOYMENT_KEY }}