Skip to content

Commit

Permalink
Update buildpack builder in fly.prod.toml and fly.staging.toml (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored Dec 5, 2023
1 parent acedc1f commit fd8ebe5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
- fastparquet
- gunicorn
- httpx
- openssl != 3.1.1 # exclude broken version
- pandas >=1.5.3
- pandera
- pip
Expand All @@ -26,4 +25,4 @@ dependencies:
- universal_pathlib
- uvicorn
- pip:
- offsets-db-data>=2023.11.4
- offsets-db-data>=2023.11.10
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
- fastparquet
- gunicorn
- httpx
- openssl != 3.1.1 # exclude broken version
- pandas >=1.5.3
- pandera
- pip
Expand All @@ -24,4 +23,4 @@ dependencies:
- universal_pathlib
- uvicorn
- pip:
- offsets-db-data>=2023.11.4
- offsets-db-data>=2023.11.10
2 changes: 1 addition & 1 deletion fly.prod.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand Down
2 changes: 1 addition & 1 deletion fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand Down
5 changes: 5 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."

Expand Down

0 comments on commit fd8ebe5

Please sign in to comment.