Skip to content

Test Azure deployment workflow#7

Merged
MJCliffe merged 14 commits into
Livefrom
ml-evs/deployment
Aug 17, 2023
Merged

Test Azure deployment workflow#7
MJCliffe merged 14 commits into
Livefrom
ml-evs/deployment

Conversation

@ml-evs
Copy link
Copy Markdown
Collaborator

@ml-evs ml-evs commented Aug 17, 2023

This PR sets up automated Azure deployments of the app.

Any push made to Live will be deployed to the test deployment at https://pascal-notts-test.azurewebsites.net/, and if a deployment to the main server at https://pascal-notts.azurewebsites.net is desired, this can be triggered via a workflow_dispatch from the Actions tab by an admin of this repo. We could change this rule slightly in the future to deploy on new releases, if we wish.

Brief notes:

Azure doesn't like poetry, and is awkward to configure without direct access to the app dashboard. To get around this, this PR uses poetry to create a requirements.txt file that also includes a "." entry for the local code, and bundles this in the zip that is sent to Azure. Azure also expects a file called app.py at the top-level, which it runs with gunicorn directly. It can be configured to look in a different directory, but for now, this PR copies all the required files to the top-level before zipping. I don't think this has any other side effects.

@ml-evs ml-evs marked this pull request as ready for review August 17, 2023 15:18
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 15:24 — with GitHub Actions Inactive
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 15:45 — with GitHub Actions Inactive
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 15:57 — with GitHub Actions Inactive
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 16:28 — with GitHub Actions Inactive
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 16:42 — with GitHub Actions Inactive
@ml-evs ml-evs marked this pull request as draft August 17, 2023 16:53
@ml-evs ml-evs temporarily deployed to Test deployment August 17, 2023 16:54 — with GitHub Actions Inactive
@ml-evs ml-evs marked this pull request as ready for review August 17, 2023 17:11
@ml-evs ml-evs requested a review from MJCliffe August 17, 2023 17:11
@MJCliffe MJCliffe merged commit 710222f into Live Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants