From 8e7244b697c482e115d1c9ceeee666d9e32de1eb Mon Sep 17 00:00:00 2001 From: Nick Clyde Date: Tue, 3 Sep 2024 16:43:13 -0700 Subject: [PATCH] Install templ directly, shorten sleep --- .github/workflows/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 18e0f4e..9df3369 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -40,14 +40,14 @@ jobs: --source-address-prefixes $agentIP \ --destination-address-prefixes '*' \ --description "Allow SSH from GitHub Actions" - sleep 30 + sleep 3 - name: Deploy phinvads-go to VM env: AZURE_VM_IP: ${{ secrets.AZURE_VM_IP }} AZURE_VM_SSH_KEY: ${{ secrets.AZURE_VM_SSH_KEY }} run: | - go mod tidy + go install github.com/a-h/templ/cmd/templ@latest templ generate go build -o phinvads-go ./cmd/phinvads-go scp -i <(echo "$AZURE_VM_SSH_KEY") ./phinvads-go azureuser@${AZURE_VM_IP}:/home/azureuser/phinvads-go