Skip to content

modify allowed Hosts #8

modify allowed Hosts

modify allowed Hosts #8

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build Docker image
run: docker build -t ymack/my-django:latest .
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Push Docker image to Docker Hub
run: docker push ymack/my-django:latest
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: Dentalize
images: ymack/my-django:latest
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}