Skip to content

Commit

Permalink
Update azure-container-webapp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malak-elbanna authored Jan 12, 2024
1 parent 64e5004 commit 170ea0c
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/azure-container-webapp.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
name: CI Pipeline

on:
push:
branches: [main]

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

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install Dependencies
run:
npm install
run: |
pip install -r requirements.txt
- name: Run tests with pytest
run:
npm test
run: |
pip install pytest
pytest
- name: Build and push docker image
run:
- 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

0 comments on commit 170ea0c

Please sign in to comment.