Add extras docker image

This commit is contained in:
Timothy Hobbs 2024-07-22 02:30:07 +02:00
parent a2b50919c2
commit 1c5cc13f86
4 changed files with 15 additions and 0 deletions

View File

@ -19,12 +19,21 @@ jobs:
- name: Build Docker image
run: docker build --file standalone/Dockerfile -t djangohelpdesk/standalone:latest ..
- name: Build extras Docker image
run: docker build --file standalone/Dockerfile.extras -t djangohelpdesk/standalone-extras:latest ..
- name: Push Docker image
run: docker push djangohelpdesk/standalone:latest
- name: Push extras Docker image
run: docker push djangohelpdesk/standalone-extras:latest
- name: Tag and push Docker image with year, month and Git SHA
run: docker tag djangohelpdesk/standalone:latest djangohelpdesk/standalone:$(date +%Y-%m)-$(git rev-parse --short HEAD) ; docker push djangohelpdesk/standalone:$(date +%Y-%m)-$(git rev-parse --short HEAD)
- name: Tag and push extras Docker image with year, month and Git SHA
run: docker tag djangohelpdesk/standalone-extras:latest djangohelpdesk/standalone-extras:$(date +%Y-%m)-$(git rev-parse --short HEAD) ; docker push djangohelpdesk/standalone-extras:$(date +%Y-%m)-$(git rev-parse --short HEAD)
- name: If we are at a tag, add a tag to the current docker image push the image with the tag
if: startsWith(github.ref, 'refs/tags/')
run: docker tag djangohelpdesk/standalone:latest djangohelpdesk/standalone:${{ github.ref }} ; docker push djangohelpdesk/standalone:${{ github.ref }}

View File

@ -0,0 +1,2 @@
FROM djangohelpdesk/standalone
RUN pip3 install -r /opt/django-helpdesk/requirements-extras.txt

View File

@ -0,0 +1,4 @@
django-ses
django-storages
boto3
git+https://github.com/KristobalJunta/django-keycloak.git@1c3b555335e5a95f1bf1281f19ed082d96032f80