Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/continousint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: docker build --tag todo-app:test --target test .
- run: docker run todo-app:test
- run: docker run todo-app:test

deploy:
name: Push to Docker Hub and Trigger App Service for Deployment
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/Mod9CD' }}
steps:
- uses: actions/checkout@v4
- run: echo hello deploy

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good practice for clean code is to remove debug messages like this before merging.

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_NASHU }}
password: ${{ secrets.DOCKER_HUB_DUPASSWORD }}
- run: docker build --tag nashussain76/todo-app:prod --target production .
- run: docker push nashussain76/todo-app:prod
- run: curl -dH -X POST '${{ secrets.APP_SERVICE_DEPLOYMENT_WEBHOOK }}'
2 changes: 1 addition & 1 deletion todo_app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block content %}
<div class="jumbotron">
<h1 class="display-4">Azure To-Do App</h1>
<h1 class="display-4">Updated via Pipeline - Azure To-Do App</h1>
<p class="lead">Just another to-do app.</p>
</div>

Expand Down