Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

update azure-dev.yaml #298

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.12
cache: 'pip'
- name: Test
run: |
Expand Down
2 changes: 2 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"project_name": "azure",
"python_version": ["3.12", "3.11", "3.10", "3.9", "3.8"],
"project_backend": ["django", "fastapi", "flask"],
"db_resource": ["postgres-flexible", "cosmos-postgres", "postgres-addon", "cosmos-mongodb"],
"project_host": ["aca", "appservice"],
Expand All @@ -20,6 +21,7 @@
},
"__prompts__": {
"project_name": "Name prefix of your project?",
"python_version": "Python Version?",
"project_backend": {
"__prompt__": "Choose a Web Framework",
"django": "Django",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye
FROM mcr.microsoft.com/devcontainers/python:{{cookiecutter.python_version}}-bullseye

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends postgresql-client \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches:
- main
- cruft/update
- cruft/update*

# GitHub Actions workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"

- name: Install Cruft
run: pip3 install -r requirements-dev.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.12
cache: 'pip'
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.__src_folder_name}}/infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module web 'web.bicep' = {
keyVaultName: keyVault.outputs.name
{% if cookiecutter.project_host == "appservice" %}
appCommandLine: 'entrypoint.sh'
pythonVersion: '3.11'
pythonVersion: '{{cookiecutter.python_version}}'
{% endif %}
{% if cookiecutter.project_host == "aca" %}
identityName: '${prefix}-id-web'
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.__src_folder_name}}/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye
FROM mcr.microsoft.com/devcontainers/python:{{cookiecutter.python_version}}-bullseye

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends postgresql-client \
Expand Down
Loading