Skip to content

Commit

Permalink
#67 gh action to build demo image
Browse files Browse the repository at this point in the history
  • Loading branch information
dgk committed Apr 3, 2024
1 parent 7fa656d commit 2913c23
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
*
!business_logic
!docs/requirements.txt
!manage.py
!README.*
!requirements.*
!setup.*
!tests
!sites
!business_logic
!README.*
!manage.py
!tests
sites/dev/db.sqlite3
39 changes: 39 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build docker demo image

on:
push:
branches:
- feature/gh-docker-build

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: benjlevesque/[email protected]
id: short-sha
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- run: echo $SHA
env:
SHA: ${{ env.SHA }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# tags: dgksu/django-business-logic:demox
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ django-filter==23.2
django-nested-admin==4.0.2
django-polymorphic==3.1.0
django-treebeard==4.7
djangorestframework>=3.14.0
djangorestframework>=3.14.0,<3.15.0
lxml<5.0

0 comments on commit 2913c23

Please sign in to comment.