Porównaj commity

...

23 Commity
main ... main

Autor SHA1 Wiadomość Data
Mi Klo 1ad080d9a0 Merge remote-tracking branch 'upstream/main'
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline was successful Szczegóły
ci/woodpecker/tag/push Pipeline was successful Szczegóły
2023-08-22 21:56:41 +00:00
Mi Klo 161ffba148 Merge remote-tracking branch 'upstream/main'
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline failed Szczegóły
ci/woodpecker/tag/push unknown status Szczegóły
2023-08-07 14:45:01 +00:00
Mi Klo 6991b1ef2a add http400 handler
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline was successful Szczegóły
ci/woodpecker/tag/push Pipeline was successful Szczegóły
2023-07-30 13:12:49 +00:00
Mi Klo fe431189d8 add http400 handler 2023-07-30 13:03:30 +00:00
Mi Klo 3c7b1fbc74 merge upstream
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline was successful Szczegóły
ci/woodpecker/tag/push Pipeline was successful Szczegóły
2023-07-29 07:46:40 +02:00
Mi Klo ad0a0beeff Merge branch 'main' of https://forge.citizen4.eu/miklo/comfy 2023-07-22 03:10:59 +02:00
Mi Klo 7406a61636 refactor CI pipeline 2023-07-22 03:09:00 +02:00
Mi Klo 25222d80e8 Zaktualizuj '.woodpecker/.test.yml'
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline was successful Szczegóły
ci/woodpecker/tag/push Pipeline was successful Szczegóły
2023-07-22 00:26:57 +00:00
Mi Klo 186c578bc1 Zaktualizuj '.woodpecker/.build.yml' 2023-07-22 00:24:33 +00:00
Mi Klo acd23390a2 edit CI pipeline
ci/woodpecker/tag/build Pipeline failed Szczegóły
ci/woodpecker/tag/test unknown status Szczegóły
ci/woodpecker/tag/push unknown status Szczegóły
2023-07-21 22:12:55 +00:00
Mi Klo 248f1988c3 edit CI pipeline
ci/woodpecker/tag/build Pipeline failed Szczegóły
ci/woodpecker/tag/test unknown status Szczegóły
ci/woodpecker/tag/push unknown status Szczegóły
2023-07-21 22:03:04 +00:00
Mi Klo 4b7b974210 refactor CI pipeline
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline was successful Szczegóły
ci/woodpecker/tag/push Pipeline was successful Szczegóły
2023-07-21 23:08:48 +02:00
Mi Klo af951667d9 refactor CI pipeline
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline failed Szczegóły
ci/woodpecker/tag/push unknown status Szczegóły
2023-07-21 22:08:34 +02:00
Mi Klo 7899c5c3b3 refactor CI pipeline
ci/woodpecker/tag/build Pipeline was successful Szczegóły
ci/woodpecker/tag/test Pipeline failed Szczegóły
ci/woodpecker/tag/push unknown status Szczegóły
2023-07-21 21:30:35 +02:00
Mi Klo 6a71cac512 Zaktualizuj 'artel/docker-compose-test.yml'
ci/woodpecker/tag/test Pipeline failed Szczegóły
ci/woodpecker/tag/build-push unknown status Szczegóły
2023-07-21 15:33:41 +00:00
Mi Klo 3f04a95cc5 refactor CI pipeline
ci/woodpecker/tag/test Pipeline failed Szczegóły
ci/woodpecker/tag/build-push unknown status Szczegóły
2023-07-21 17:04:24 +02:00
Mi Klo ba02d80d28 add healthcheck in test compose 2023-07-21 13:19:08 +02:00
Mi Klo ab7ec915aa merge upstream main 2023-07-20 20:54:59 +00:00
Mi Klo ad083fad0e edit CI pipeline
ci/woodpecker/tag/woodpecker Pipeline was successful Szczegóły
2023-07-19 23:58:22 +00:00
Mi Klo 0565dc2358 CI test
ci/woodpecker/push/woodpecker Pipeline was successful Szczegóły
2023-07-17 21:14:32 +00:00
Mi Klo 4d0f30af28 Woodpecker CI pipeline 2023-07-17 21:07:27 +00:00
Mi Klo 2c66b8b574 change python to 3.11.4-slim-bullseye 2023-07-17 13:19:59 +00:00
Mi Klo e6a515761a change python to 3.11.4-slim-bullseye 2023-07-17 00:05:07 +00:00
8 zmienionych plików z 72 dodań i 19 usunięć

Wyświetl plik

@ -0,0 +1,13 @@
when:
event: tag
branch: ${CI_REPO_DEFAULT_BRANCH}
steps:
build:
image: docker:cli
secrets: [comfy_image]
commands:
- docker build ./artel -t $${COMFY_IMAGE} -f ./artel/Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock

Wyświetl plik

@ -0,0 +1,19 @@
when:
event: tag
branch: ${CI_REPO_DEFAULT_BRANCH}
steps:
push:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
registry: forge.citizen4.eu
repo: forge.citizen4.eu/${CI_REPO_OWNER}/${CI_REPO_NAME}
dockerfile: artel/Dockerfile
context: artel
tags:
- ${CI_COMMIT_TAG}
- latest
depends_on:
- test

Wyświetl plik

@ -0,0 +1,17 @@
when:
event: tag
branch: ${CI_REPO_DEFAULT_BRANCH}
steps:
test:
image: docker:cli
commands:
- docker compose -f ./artel/docker-compose-test.yml run test_comfy
- docker compose -f ./artel/docker-compose-test.yml down
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [uid, gid, database_url, postgres_root_password, postgres_user, postgres_password, postgres_db, django_settings_module, comfy_image]
depends_on:
- build

Wyświetl plik

@ -1,5 +1,5 @@
# Use an official Python runtime based on Debian 10 "buster" as a parent image.
FROM python:3.11.3-buster
# Use an official Python runtime based on Debian 11 "bullseye slim" as a parent image.
FROM python:3.11.4-slim-bullseye
# Add user that will be used in the container.
RUN useradd wagtail
@ -18,7 +18,6 @@ ENV PYTHONUNBUFFERED=1 \
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
build-essential \
libpq-dev \
libmariadbclient-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libwebp-dev \

Wyświetl plik

@ -1,5 +1,5 @@
# Use an official Python runtime based on Debian 10 "buster" as a parent image.
FROM python:3.11.3-buster
# Use an official Python runtime based on Debian 11 "bullseye slim" as a parent image.
FROM python:3.11.4-slim-bullseye
# Port used by this container to serve HTTP.
EXPOSE 8000
@ -15,7 +15,6 @@ ENV PYTHONUNBUFFERED 1
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
build-essential \
libpq-dev \
libmariadbclient-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libwebp-dev \

Wyświetl plik

@ -12,6 +12,7 @@ from wagtail.documents import urls as wagtaildocs_urls
from search import views as search_views
handler400 = 'artel.views.my_custom_bad_request_view'
handler404 = 'artel.views.my_custom_page_not_found_view'

Wyświetl plik

@ -1,5 +1,6 @@
from django.conf import settings
from django.http import HttpResponseNotFound
from django.http import HttpResponseBadRequest
from sentry_sdk import capture_message
@ -7,5 +8,8 @@ def my_custom_page_not_found_view(*args, **kwargs):
if settings.SENTRY_ENVIRONMENT != 'production':
capture_message("Page not found!", level="error")
# return any response here, e.g.:
return HttpResponseNotFound("Not found")
def my_custom_bad_request_view(*args, **kwargs):
capture_message("Bad request!", level="error")
return HttpResponseBadRequest("Bad request")

Wyświetl plik

@ -8,23 +8,24 @@ services:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ../postgres/:/var/lib/postgresql
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
test_comfy:
image: ${COMFY_IMAGE}
depends_on:
- test_db
build:
dockerfile: Dockerfile.local
context: ./
test_db:
condition: service_healthy
user: "${UID}:${GID}"
volumes:
- ./:/app
environment:
- UID
- GID
- SECRET_KEY
- DATABASE_URL
env_file:
- .env
- DJANGO_SETTINGS_MODULE
command:
python manage.py test --noinput