Skip to content

Commit

Permalink
add build and dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanukant committed Oct 2, 2023
1 parent 67b3d9e commit 6eca976
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 14 deletions.
36 changes: 36 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
__pycache__
*.pyc
*.pyo
*.pyd
*.db
*.sqlite3
*.log
*.swp
*.swo
*.git
*.vscode
.env
.DS_Store

*.venv
*.pyenv
node_modules
npm-debug.log
yarn-error.log
*.npm
*.lock

*.pyc
*.pyo
*.db
*.sqlite3
media/
staticfiles/
*.coverage
.coverage
htmlcov/
.coverage.xml
.tox/
.pytest_cache/
.vscode/
.reame.md
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Squib deploy
name: Squib build

on:
push:
Expand All @@ -22,16 +22,16 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push Docker image
run: |
# Adjust the Dockerfile path as needed (e.g., ./squib/Dockerfile)
docker build -t ${{ secrets.DOCKER_USERNAME }}/squib .
docker push ${{ secrets.DOCKER_USERNAME }}/squib
# - name: Build and push Docker image
# run: |
# # Adjust the Dockerfile path as needed (e.g., ./squib/Dockerfile)
# docker build -t ${{ secrets.DOCKER_USERNAME }}/squib .
# docker push ${{ secrets.DOCKER_USERNAME }}/squib

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'squib'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
# - name: 'Deploy to Azure Web App'
# uses: azure/webapps-deploy@v2
# id: deploy-to-webapp
# with:
# app-name: 'squib'
# slot-name: 'Production'
# publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

File renamed without changes.

0 comments on commit 6eca976

Please sign in to comment.