Skip to content

Commit

Permalink
Build on master and docker-build branches
Browse files Browse the repository at this point in the history
  • Loading branch information
joodie committed May 29, 2024
1 parent 3091001 commit 522087e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
build:
needs: [check]
# only run on this branch
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docker-build' }}
name: 'Build and Push to ACR'
runs-on: ubuntu-latest

Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ This jar-file is runnable with:
java -jar target/dil-demo.jar
```

## Docker builds

To build and run a docker image, do

```sh
docker build . -t my-image
docker run --env-file=.env my-image
```

The above assumes your environment variables are specified in `.env`

## Architecture documentation

Documentation on the architecture of this demo can be found at
Expand Down

0 comments on commit 522087e

Please sign in to comment.