Skip to content

Commit f2dddfc

Browse files
committed
Removed staticfiles directory and moved it to CI/CD pipeline
1 parent 8b8f536 commit f2dddfc

File tree

165 files changed

+14
-37320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+14
-37320
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@ jobs:
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

31+
- name: Collect static files
32+
run: |
33+
cd backend
34+
python manage.py collectstatic --noinput
35+
3136
- name: Build and push Django image
3237
uses: docker/build-push-action@v4
3338
with:
34-
context: ./tibiknini
35-
file: ./tibiknini/Dockerfile
39+
context: ./backend
40+
file: ./backend/Dockerfile
3641
push: true
3742
tags: ghcr.io/${{ env.OWNER_LC }}/tibiknini:latest
3843

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Ignore Django collected static files
2+
# These are generated during deployment and should not be version controlled
3+
/backend/staticfiles/
14
dumps/
25
secrets/
36
.env.prod

backend/staticfiles/admin/css/autocomplete.css

Lines changed: 0 additions & 275 deletions
This file was deleted.

0 commit comments

Comments
 (0)