Skip to content

Commit

Permalink
Update deploymentCD.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DucBaoUIT committed Dec 13, 2024
1 parent 4a94bfc commit 18cc811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploymentCD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
VPN_USERNAME: ${{ secrets.VPN_USERNAME }}
VPN_PASSWORD: ${{ secrets.VPN_PASSWORD }}
run: |
echo "${{ secrets.VPN_PROFILE_BASE64 }}" | base64 --decode > profile-559.ovpn
echo -e "${VPN_USERNAME}\n${VPN_PASSWORD}" > vpn-auth.txt
sudo openvpn --config profile-559.ovpn --auth-user-pass vpn-auth.txt --daemon
sleep 10
rm vpn-auth.txt
rm profile-559.ovpn
- name: Deploy to Server
uses: appleboy/ssh-action@v0.1.10
Expand Down

0 comments on commit 18cc811

Please sign in to comment.