From fd8ebe55c4b9f0a999643cba42c9439f8b9ebedc Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe <13301940+andersy005@users.noreply.github.com> Date: Tue, 5 Dec 2023 15:49:22 -0800 Subject: [PATCH] Update buildpack builder in fly.prod.toml and fly.staging.toml (#70) --- .github/workflows/fly.yml | 2 +- .github/workflows/label-prs.yaml | 2 +- environment-dev.yml | 3 +-- environment.yml | 3 +-- fly.prod.toml | 2 +- fly.staging.toml | 2 +- release.sh | 5 +++++ 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml index 053fab1..7eea3f6 100644 --- a/.github/workflows/fly.yml +++ b/.github/workflows/fly.yml @@ -51,7 +51,7 @@ jobs: STAGING_URL='https://offsets-db-staging.fly.dev/files' python update_database.py staging - name: Deploy to Production - if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' + if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' run: | flyctl deploy --remote-only --config fly.prod.toml diff --git a/.github/workflows/label-prs.yaml b/.github/workflows/label-prs.yaml index 89d35c8..b85eb81 100644 --- a/.github/workflows/label-prs.yaml +++ b/.github/workflows/label-prs.yaml @@ -6,7 +6,7 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: actions/labeler@main + - uses: actions/labeler@v4 #TODO: v5 introduces breaking changes: https://github.com/actions/labeler/tree/main?tab=readme-ov-file#breaking-changes-in-v5 with: repo-token: '${{ secrets.GITHUB_TOKEN }}' sync-labels: false diff --git a/environment-dev.yml b/environment-dev.yml index c3c5e0d..ec7152e 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -11,7 +11,6 @@ dependencies: - fastparquet - gunicorn - httpx - - openssl != 3.1.1 # exclude broken version - pandas >=1.5.3 - pandera - pip @@ -26,4 +25,4 @@ dependencies: - universal_pathlib - uvicorn - pip: - - offsets-db-data>=2023.11.4 + - offsets-db-data>=2023.11.10 diff --git a/environment.yml b/environment.yml index 52a3de8..e799ba9 100644 --- a/environment.yml +++ b/environment.yml @@ -11,7 +11,6 @@ dependencies: - fastparquet - gunicorn - httpx - - openssl != 3.1.1 # exclude broken version - pandas >=1.5.3 - pandera - pip @@ -24,4 +23,4 @@ dependencies: - universal_pathlib - uvicorn - pip: - - offsets-db-data>=2023.11.4 + - offsets-db-data>=2023.11.10 diff --git a/fly.prod.toml b/fly.prod.toml index 52dcf67..b8847c5 100644 --- a/fly.prod.toml +++ b/fly.prod.toml @@ -5,7 +5,7 @@ kill_timeout = 5 primary_region = "dfw" [build] -builder = "paketobuildpacks/builder:base" +builder = "paketobuildpacks/builder-jammy-base:latest" buildpacks = ["gcr.io/paketo-buildpacks/python"] diff --git a/fly.staging.toml b/fly.staging.toml index d444975..a1d0881 100644 --- a/fly.staging.toml +++ b/fly.staging.toml @@ -5,7 +5,7 @@ kill_timeout = 5 primary_region = "dfw" [build] -builder = "paketobuildpacks/builder:base" +builder = "paketobuildpacks/builder-jammy-base:latest" buildpacks = ["gcr.io/paketo-buildpacks/python"] diff --git a/release.sh b/release.sh index bf2caed..3235e70 100644 --- a/release.sh +++ b/release.sh @@ -2,6 +2,11 @@ set -e +echo "List of Python packages:" +python -m pip list + +echo "alembic version: $(python -m alembic --version)" + # Run database migrations echo "Running database migrations..."