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 17
17
description : ' PSONO_SECRET_ID'
18
18
required : true
19
19
20
- PSONO_SECRET_NEW_VALUE :
21
- description : ' PSONO_SECRET_NEW_VALUE'
22
- required : true
23
-
24
20
jobs :
25
21
build :
26
22
runs-on : ubuntu-latest
38
34
run : |
39
35
ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} "date"
40
36
41
- - name : Generate new vpn peer config
37
+ - name : Generate new vpn peer config & Add save client config to password manager
42
38
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"
49
40
50
41
51
42
# 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