-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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 | ||
|
||
- id: build-args | ||
run: | | ||
echo VCS_REF=`git rev-parse --short HEAD` >> $GITHUB_OUTPUT | ||
echo BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` >> $GITHUB_OUTPUT | ||
echo VERSION=`python -c 'from __future__ import print_function; import business_logic; print(business_logic.__version__)'` >> $GITHUB_OUTPUT | ||
- 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: | ||
build-args: | | ||
VCS_REF=${{ steps.build-args.outputs.VCS_REF }} | ||
BUILD_DATE=${{ steps.build-args.outputs.BUILD_DATE }} | ||
VERSION=${{ steps.build-args.outputs.VERSION }} | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: dgksu/django-business-logic:demox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters