Skip to content

Commit

Permalink
trial 3
Browse files Browse the repository at this point in the history
  • Loading branch information
malak-elbanna authored Jan 12, 2024
1 parent 8e84ed8 commit c151e35
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/azure-container-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,37 @@ jobs:
- 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
deploy-and-get-url:
needs: build-and-push
runs-on: ubuntu-latest

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

- name: Deploy to GitHub Pages
run: |
git checkout -b main
cp -R path/to/deployed/files/* .
git add .
git commit -m "Deploy to GitHub Pages"
git push origin gh-pages
- name: Set Deployment URL as Output
id: set-url
run: echo "::set-output name=url::https://malak-elbanna.github.io/thepantrypuzzle"

get-url:
needs: deploy-and-get-url
runs-on: ubuntu-latest

steps:
- name: Get Deployment URL
run: echo "The deployment URL is ${{ needs.deploy-and-get-url.outputs.url }}"

0 comments on commit c151e35

Please sign in to comment.