Skip to content

Commit

Permalink
Docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Apr 4, 2024
1 parent bbe6668 commit 282364a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Login to ghcr
uses: docker/login-action@v2
with:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CONTAINER_TOKEN }}
Expand All @@ -41,11 +41,17 @@ jobs:
run: make -w dist-prod

- name: Get date
run: |
run: |
echo "DATE=$(date +'%s')" >> "$GITHUB_ENV"
- name: Build the Container image
run: docker build . --file Dockerfile --tag ghcr.io/jamesread/spoon-check:${{ env.DATE }}

- name: Tag latest
run: docker tag ghcr.io/jamesread/spoon-check:${{ env.DATE }} ghcr.io/jamesread/spoon-check:latest

- name: Push the Container image
run: docker push ghcr.io/jamesread/spoon-check:${{ env.DATE }}

- name: Push the Container image - latest tag
run: docker push ghcr.io/jamesread/spoon-check:latest
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ Feedback is very welcome. Raising a GitHub issue is the best way to communicate
* Accessibility is very important.
* Use offline (as a "progressive web app"), so it can be installed.

## Self hosting
## Self host - any webserver

Simply copy the `dist` folder to any webserver. No server side support needed.

You can customize data/icons.json to suit your needs.

## Docker Container
## Self host - Docker Container

ghcr.io/jamesread/spoon-check
```
docker run -p 3000:3000 ghcr.io/jamesread/spoon-check
```

0 comments on commit 282364a

Please sign in to comment.