-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e88f612
commit 7b21ae6
Showing
4 changed files
with
74 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Container image that runs your code | ||
FROM python:3.12-bullseye | ||
|
||
# RUN echo "### Install dependencies" >> $GITHUB_STEP_SUMMARY | ||
|
||
RUN apt remove "*imagemagick*" --purge -y && apt autoremove --purge -y | ||
|
||
RUN apt-get -qq update && apt-get -qq install -y ffmpeg build-essential | ||
|
||
# RUN echo "### Build & install ImageMacick 7" >> $GITHUB_STEP_SUMMARY | ||
|
||
RUN git clone https://github.com/SoftCreatR/imei && \ | ||
cd imei && \ | ||
chmod +x imei.sh && \ | ||
./imei.sh | ||
|
||
|
||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=1 \ | ||
POETRY_VIRTUALENVS_CREATE=1 \ | ||
POETRY_CACHE_DIR=/tmp/poetry_cache | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
COPY pyproject.toml /pyproject.toml | ||
COPY poetry.lock /poetry.lock | ||
|
||
WORKDIR / | ||
|
||
# RUN echo "### Install Poetry and Python dependencies" >> $GITHUB_STEP_SUMMARY | ||
|
||
RUN pip install poetry | ||
RUN poetry install --no-root | ||
|
||
# RUN echo "### Blurring site" >> $GITHUB_STEP_SUMMARY | ||
|
||
WORKDIR /github/workspace | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,15 @@ | ||
# Setup Blurry Docker action | ||
|
||
This action builds your [Blurry](https://github.com/blurry-dev/blurry) static site. | ||
|
||
## Inputs | ||
|
||
None yet | ||
|
||
## Outputs | ||
|
||
Your built site | ||
|
||
## Example usage | ||
|
||
uses: blurry-dev/[email protected] |
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,16 @@ | ||
# action.yml | ||
name: 'Setup Blurry' | ||
description: 'Builds a static site using Blurry' | ||
# inputs: | ||
# who-to-greet: # id of input | ||
# description: 'Who to greet' | ||
# required: true | ||
# default: 'World' | ||
# outputs: | ||
# time: # id of output | ||
# description: 'The time we greeted you' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
# args: | ||
# - ${{ inputs.who-to-greet }} |
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,3 @@ | ||
#!/bin/sh -l | ||
|
||
poetry run blurry build |