Skip to content

typo fix in azure-container-webapp.yml #4

typo fix in azure-container-webapp.yml

typo fix in azure-container-webapp.yml #4

name : CI Pipeline
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install Dependancies
run:
pip install -r requirements.txt
- name: Run tests with pytest
run:
pip install pytest
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