Fix CSRF configuration #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |