mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-03-03 17:51:15 +01:00
Add extras docker image
This commit is contained in:
parent
a2b50919c2
commit
1c5cc13f86
@ -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 }}
|
||||
|
2
standalone/Dockerfile.extras
Normal file
2
standalone/Dockerfile.extras
Normal file
@ -0,0 +1,2 @@
|
||||
FROM djangohelpdesk/standalone
|
||||
RUN pip3 install -r /opt/django-helpdesk/requirements-extras.txt
|
4
standalone/requirements-extras.txt
Normal file
4
standalone/requirements-extras.txt
Normal file
@ -0,0 +1,4 @@
|
||||
django-ses
|
||||
django-storages
|
||||
boto3
|
||||
git+https://github.com/KristobalJunta/django-keycloak.git@1c3b555335e5a95f1bf1281f19ed082d96032f80
|
Loading…
Reference in New Issue
Block a user