Skip to content

Commit

Permalink
build: updated dependency to Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Mar 4, 2024
1 parent 9634be5 commit c4d39a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
if: "contains(github.event.head_commit.message, 'bump version')"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'

- name: Export gcloud related env variable
run: export CLOUDSDK_PYTHON="/usr/bin/python3"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.9-slim
FROM python:3.11-slim

RUN apt-get update \
&& apt-get install gcc -y \
Expand Down
7 changes: 6 additions & 1 deletion docs/contributing/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,14 @@ Secondly, you should describe the changes in `docs/changelog/changelog.md`

We are deploying the tool using Google Cloud Run. The project is automatically deployed when you push to `master` the commit message includes the word `bump version`. Check the GitHub action in the folder `./.github/workflows/deploy.yml` for more information about how we build and deploy the application.

Alternatively, you can deploy a new version of the tool to Google Cloud Run using the following command:
Alternatively, you can deploy a new version of the tool to Google Cloud Run using the following command.
Please note that you have to set a valid account before running the command and add your email in the code below.


```
gcloud components update
pipenv requirements > requirements.txt
gcloud config set account <YOUR EMAIL>
gcloud builds submit --tag gcr.io/comfort-327718/comfort-tool --project=comfort-327718
gcloud run deploy comfort-tool --image gcr.io/comfort-327718/comfort-tool --platform managed --project=comfort-327718 --allow-unauthenticated --region=us-central1
Expand Down

0 comments on commit c4d39a6

Please sign in to comment.