restructuring
This commit is contained in:
@@ -8,6 +8,7 @@ on:
|
|||||||
- 'django_testing/dockerfile'
|
- 'django_testing/dockerfile'
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
workflow_dispatch: # Enables the manual run UI button
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
@@ -82,6 +83,7 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
context: infra/production/
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
ALLOWED_HOSTS='django.tryton.geeraert.eu'
|
ALLOWED_HOSTS='django.tryton.geeraert.eu'
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: django_testing/
|
context: infra/testing/
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
ALLOWED_HOSTS='django-testing.tryton.geeraert.eu'
|
ALLOWED_HOSTS='django-testing.tryton.geeraert.eu'
|
||||||
|
|||||||
@@ -24,5 +24,8 @@ RUN pip install --cache-dir=/opt/hostedtoolcache/pip -r requirements.txt
|
|||||||
# Copy the rest of your application code (Changes frequently, invalidates subsequent cache)
|
# Copy the rest of your application code (Changes frequently, invalidates subsequent cache)
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
# CMD is the command run when the container starts
|
COPY entrypoint.sh /code/entrypoint.sh
|
||||||
CMD [ "python","django_code/manage.py","runserver","0.0.0.0:8000" ]
|
RUN chmod +x /code/entrypoint.sh
|
||||||
|
|
||||||
|
|
||||||
|
ENTRYPOINT ["/code/entrypoint.sh"]
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
python django_code/manage.py runserver "0.0.0.0:8000"
|
||||||
|
|
||||||
@@ -30,4 +30,3 @@ EXPOSE 8000
|
|||||||
|
|
||||||
ENTRYPOINT ["/code/entrypoint.sh"]
|
ENTRYPOINT ["/code/entrypoint.sh"]
|
||||||
|
|
||||||
#Add text to trigger build again
|
|
||||||
Reference in New Issue
Block a user