diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdc3ad72..a38b358b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 62fd686a..e9233c15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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