From cb1c7a0bc495a53997fb6a0f4c7a2fccd96ff59a Mon Sep 17 00:00:00 2001 From: owenowenisme Date: Wed, 11 Dec 2024 03:00:14 +0800 Subject: [PATCH] add wireguard config to secret --- .github/workflows/dev-frontend.yml | 1 + .github/workflows/frontend-cd.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/dev-frontend.yml b/.github/workflows/dev-frontend.yml index 1facfbb..f65cffb 100644 --- a/.github/workflows/dev-frontend.yml +++ b/.github/workflows/dev-frontend.yml @@ -13,3 +13,4 @@ jobs: DEV_HOST: ${{ secrets.DEV_HOST }} DEV_USERNAME: ${{ secrets.DEV_USERNAME }} DEV_SSHKEY: ${{ secrets.DEV_SSHKEY }} + WIREGUARD_CONFIG: ${{ secrets.WIREGUARD_CONFIG }} \ No newline at end of file diff --git a/.github/workflows/frontend-cd.yml b/.github/workflows/frontend-cd.yml index 821735b..7d2d6bf 100644 --- a/.github/workflows/frontend-cd.yml +++ b/.github/workflows/frontend-cd.yml @@ -10,6 +10,8 @@ on: required: true DEV_SSHKEY: required: true + WIREGUARD_CONFIG: + required: true env: REGISTRY: ghcr.io @@ -31,6 +33,7 @@ jobs: - name: Connect to WireGuard run: | + sudo wg-quick up pastexam-dev - name: Check wireguard connection run: |