Skip to content

Commit cbbc918

Browse files
feat(ci): down wireguard tunnel to cleanup (#247)
Adds a step to the deploy workflows to tear down the Wireguard tunnel.
2 parents 48313c4 + be3f4a1 commit cbbc918

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release-development.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,11 @@ jobs:
112112
MANTLE_OPEN_CLOUD_API_KEY: ${{ secrets.MANTLE_OPEN_CLOUD_API_KEY }}
113113
MANTLE_AWS_ACCESS_KEY_ID: ${{ secrets.MANTLE_AWS_ACCESS_KEY_ID }}
114114
MANTLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.MANTLE_AWS_SECRET_ACCESS_KEY }}
115+
116+
# Turn off the VPN after deployment to speed up action completion
117+
- name: Post WireGuard Connection
118+
if: always()
119+
run: |
120+
sudo wg-quick down ./wg0.conf
121+
sudo rm -f ./wg0.conf
122+
shell: bash

.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ jobs:
116116
MANTLE_AWS_ACCESS_KEY_ID: ${{ secrets.MANTLE_AWS_ACCESS_KEY_ID }}
117117
MANTLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.MANTLE_AWS_SECRET_ACCESS_KEY }}
118118

119+
# Turn off the VPN after deployment to speed up action completion
120+
- name: Post WireGuard Connection
121+
if: always()
122+
run: |
123+
sudo wg-quick down ./wg0.conf
124+
sudo rm -f ./wg0.conf
125+
shell: bash
126+
119127
tag:
120128
runs-on: ubuntu-latest
121129
needs: deploy

0 commit comments

Comments
 (0)