Skip to content

changed to port 80

changed to port 80 #7

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: |
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