Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
malak-elbanna committed Jan 12, 2024
2 parents 0493214 + 2b7e431 commit 4d1dc33
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/azure-container-webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI Pipeline

on:
push:
branches: [main]

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install Dependencies
run: |
pip3 install -r requirements.txt
- name: Run tests with pytest
run: |
pip3 install pytest

- name: Build and push Docker image
run: |
docker build -t ${{secrets.LOGIN_SERVER}}/flask-app:latest .
docker login ${{secrets.LOGIN_SERVER}} -u ${{secrets.AZURE_USERNAME}} -p ${{secrets.AZURE_PASSWORD}}
docker push ${{secrets.LOGIN_SERVER}}/flask-app:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RUN pip install --no-cache-dir -r requirements.txt

ENV RECAPTCHA_PRIVATE_KEY = 6Lfer0kpAAAAAEAtPP1igzvVEtUySFK8UpOCN57X

EXPOSE 3000
EXPOSE 80

CMD ["python", "main.py"]
2 changes: 1 addition & 1 deletion backend/Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Procfile.dev - development

# Use the Flask development server.
web: python app.py
web: python main.py

0 comments on commit 4d1dc33

Please sign in to comment.