File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1717 description : ' PSONO_SECRET_ID'
1818 required : true
1919
20- PSONO_SECRET_NEW_VALUE :
21- description : ' PSONO_SECRET_NEW_VALUE'
22- required : true
23-
2420jobs :
2521 build :
2622 runs-on : ubuntu-latest
3834 run : |
3935 ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} "date"
4036
41- - name : Generate new vpn peer config
37+ - name : Generate new vpn peer config & Add save client config to password manager
4238 run : |
43- ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} -C "cd /etc/wireguard && ./add-vpn-user.sh"
44-
45- - name : Add ssh user
46- run : |
47- ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} "date"
48- ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} PSONO_CI_API_KEY_ID=${{ secrets.PSONO_CI_API_KEY_ID }} PSONO_CI_API_SECRET_KEY_HEX=${{ secrets.PSONO_CI_API_SECRET_KEY_HEX }} PSONO_CI_SERVER_URL=${{ secrets.PSONO_CI_SERVER_URL }} /etc/wireguard/save-vpn-credentials-to-password-vault.sh ${{ inputs.PSONO_SECRET_ID }} "${{ inputs.PSONO_SECRET_NEW_VALUE }}"
39+ ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} -C "PSONO_CI_API_KEY_ID=${{ secrets.PSONO_CI_API_KEY_ID }} PSONO_CI_API_SECRET_KEY_HEX=${{ secrets.PSONO_CI_API_SECRET_KEY_HEX }} PSONO_CI_SERVER_URL=${{ secrets.PSONO_CI_SERVER_URL }} PSONO_SECRET_ID=${{ inputs.PSONO_SECRET_ID }} && cd /etc/wireguard && ./add-vpn-user.sh"
4940
5041
5142 # Enable tmate debugging of manually-triggered workflows if the input option was provided
You can’t perform that action at this time.
0 commit comments