Skip to content

Commit

Permalink
update docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanukant committed Oct 6, 2023
1 parent 44f2991 commit a3aa819
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# Adjust the Dockerfile path as needed (e.g., ./squib/Dockerfile)
docker build -t ${{ secrets.DOCKER_USERNAME }}/squib .
docker push ${{ secrets.DOCKER_USERNAME }}/squib
docker run -e SECRET_KEY=$SECRET_KEY -p 8000:8000 squib
# - name: 'Deploy to Azure Web App'
# uses: azure/webapps-deploy@v2
# id: deploy-to-webapp
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your Django application code
COPY . .

# Run Collect static
RUN python manage.py collectstatic --noinput

# Migrate
RUN python manage.py migrate

COPY sshd_config /etc/ssh/

# Start and enable SSH
Expand Down

0 comments on commit a3aa819

Please sign in to comment.