Skip to content

Commit 92716c0

Browse files
Generate new vpn peer config & Add save client config to password manager
1 parent be57597 commit 92716c0

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/add-vpn-user.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ on:
1717
description: 'PSONO_SECRET_ID'
1818
required: true
1919

20-
PSONO_SECRET_NEW_VALUE:
21-
description: 'PSONO_SECRET_NEW_VALUE'
22-
required: true
23-
2420
jobs:
2521
build:
2622
runs-on: ubuntu-latest
@@ -38,14 +34,9 @@ jobs:
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

0 commit comments

Comments
 (0)