From e1ff2f90d3a72daaf2d80b029ba460de6e995a28 Mon Sep 17 00:00:00 2001 From: John Carter Date: Sat, 14 Dec 2024 21:44:03 +1300 Subject: [PATCH] Tidy up deploy (#89) --- .github/workflows/deploy.yaml | 2 +- scripts/deploy.sh | 2 ++ scripts/generate_requirements.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9e17e74..b4f482f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -32,7 +32,7 @@ jobs: - name: Test run: uv run pytest -v - name: Generate Requirements - run: uv export --output-file=requirements.txt + run: ./scripts/generate_requirements.sh - id: 'deploy' uses: 'google-github-actions/deploy-cloud-functions@v3.0.7' with: diff --git a/scripts/deploy.sh b/scripts/deploy.sh index e46ec3e..ce85f7b 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -o nounset + ./scripts/generate_requirements.sh gcloud functions deploy update2 --gen2 --runtime=python312 --region=us-central1 \ --trigger-http --env-vars-file=.env_vars.yaml \ diff --git a/scripts/generate_requirements.sh b/scripts/generate_requirements.sh index 286f185..d049b76 100755 --- a/scripts/generate_requirements.sh +++ b/scripts/generate_requirements.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -uv export -o requirements.txt +uv export --output-file=requirements.txt --quiet