File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 docker-compose-keycloak :
1313 runs-on : ubuntu-24.04
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ django_version :
18+ -
19+ - 5.1
1420 steps :
1521 - uses : actions/checkout@v4
16- - run : make build
22+ - run : make build DJANGO_VERSION=${{ matrix.django_version }}
1723 - run : sudo apt update && sudo apt install -y libwww-mechanize-perl libhttp-cookiejar-perl
1824 - run : echo '127.0.0.5 www keycloak' | sudo tee -a /etc/hosts
1925 - run : make run
Original file line number Diff line number Diff line change 99build :
1010 rm -rf tests/identity
1111 cp -rp identity tests/
12- $(DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml --profile test build
12+ $(DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml --profile test build --build-arg DJANGO_VERSION= $( DJANGO_VERSION )
1313
1414run :
1515 $(DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml up &
Original file line number Diff line number Diff line change 11FROM registry.fedoraproject.org/fedora
2- RUN dnf install -y python3-django && dnf clean all
2+ ARG DJANGO_VERSION
3+ RUN if test -n "$DJANGO_VERSION" ; then \
4+ dnf install -y python3-pip && pip install "Django == $DJANGO_VERSION.*" ; \
5+ else \
6+ dnf install -y python3-django ; \
7+ fi \
8+ && dnf clean all
39RUN mkdir -p /var/www/django
410WORKDIR /var/www/django
511RUN django-admin startproject project
You can’t perform that action at this time.
0 commit comments