From 12f6f5a5c974236691ab18a8b702305bfd2d919d Mon Sep 17 00:00:00 2001 From: enesebastian <51080680+enesebastian@users.noreply.github.com> Date: Tue, 1 Jun 2021 18:30:18 +0300 Subject: [PATCH 1/9] Add or update the App Service deployment workflow configuration from Azure Portal. --- .github/workflows/master_ftpapps.yml | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/master_ftpapps.yml diff --git a/.github/workflows/master_ftpapps.yml b/.github/workflows/master_ftpapps.yml new file mode 100644 index 00000000..cfd25c25 --- /dev/null +++ b/.github/workflows/master_ftpapps.yml @@ -0,0 +1,62 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions +# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions + +name: Build and deploy Python app to Azure Web App - ftpapps + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.8' + + - name: Create and start virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Install dependencies + run: pip install -r requirements.txt + + # Optional: Add step to run tests here (PyTest, Django test suites, etc.) + + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + with: + app-name: 'ftpapps' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_c2f557e82a9545e298a8ff89de12e554 }} \ No newline at end of file From 8b5e407e58c32ecd5ddc610ad8d2cf96c47ae46c Mon Sep 17 00:00:00 2001 From: sebastian Date: Tue, 1 Jun 2021 19:22:13 +0300 Subject: [PATCH 2/9] 1 --- .idea/.gitignore | 3 +++ .idea/djangoapp.iml | 14 ++++++++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ polls/templates/polls/index.html | 2 +- 7 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/djangoapp.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..26d33521 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/djangoapp.iml b/.idea/djangoapp.iml new file mode 100644 index 00000000..8e5446ac --- /dev/null +++ b/.idea/djangoapp.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..2641f7b4 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..9b9c4123 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/polls/templates/polls/index.html b/polls/templates/polls/index.html index 18260b0d..a8fb9245 100644 --- a/polls/templates/polls/index.html +++ b/polls/templates/polls/index.html @@ -2,7 +2,7 @@ -

Polls app

+

Cea mai tare comunitate

{% if latest_question_list %}