Skip to content

Commit

Permalink
Add poetry install to entrypoint
Browse files Browse the repository at this point in the history
Adds poetry install to entrypoint because the repository files are not available during build
  • Loading branch information
johnfraney committed Apr 2, 2024
1 parent 9c2cecf commit 37db8d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,5 @@ RUN pip install poetry
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

# Installs Python dependencies
WORKDIR /github/workspace

RUN poetry install --no-root

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,15 @@ Your built site

## Example usage

uses: blurry-dev/[email protected]
Add this as a step to your build & deploy job in GitHub:

```yaml
- name: Blur site 🌫️
uses: blurry-dev/[email protected]
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
```
The example includes using the experimental [GitHub Actions cache for Docker](https://docs.docker.com/build/ci/github-actions/cache/#github-cache)

0 comments on commit 37db8d3

Please sign in to comment.