restructuring
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
2026-07-17 15:52:48 +01:00
parent b123e260b0
commit 1adc0ffc4a
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: infra/production/
context: .
file: infra/production/dockerfile
push: true
build-args: |
ALLOWED_HOSTS='django.tryton.geeraert.eu'
@@ -46,7 +46,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: infra/testing/
context: .
file: infra/testing/dockerfile
push: true
build-args: |
ALLOWED_HOSTS='django-testing.tryton.geeraert.eu'
+4 -4
View File
@@ -12,19 +12,19 @@ ENV DEBUG=$DEBUG
WORKDIR /code/
# Copy only the requirements file first (Changes infrequently)
COPY ../../requirements.txt ./
COPY requirements.txt ./
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade pip
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade pip
RUN pip list --cache-dir=/opt/hostedtoolcache/pip --outdated
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade wheel
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade setuptools
RUN pip install --cache-dir=/opt/hostedtoolcache/pip -r requirements.txt
# Copy the rest of your application code (Changes frequently, invalidates subsequent cache)
COPY ../../. ./
COPY . ./
COPY entrypoint.sh /code/entrypoint.sh
COPY infra/production/entrypoint.sh /code/entrypoint.sh
RUN chmod +x /code/entrypoint.sh