diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..4070f3a --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,22 @@ +name: Cleaner + +on: + workflow_dispatch: + schedule: + - cron: "0 0 12,25 * *" + +jobs: + cleanup: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + attestations: write + id-token: write + steps: + - uses: actions/delete-package-versions@v5 + with: + package-name: goblin + package-type: container + min-versions-to-keep: 10 + ignore-versions: '(v?\d+\.\d+\.\d+|latest|(nightly[-]\w+))' diff --git a/readme.md b/readme.md index 496a4a9..e495139 100644 --- a/readme.md +++ b/readme.md @@ -83,13 +83,12 @@ simpler fashion** ### Existing Image -The repository builds a nightly image that you can use directly if you don't -wish to tweak anything. +The repository builds and publishes a `latest` and a semver tagged version on each release. You can use that if you do not wish to tweak or change anything in the original source code and build structure ```sh -$ docker run -p "3000:3000" ghcr.io/barelyhuman/goblin:nightly +$ docker run -p "3000:3000" ghcr.io/barelyhuman/goblin:latest # change the domain to whatever you are using for it -$ docker run -e "GOBLIN_ORIGIN_URL=example.com" -p "3000:3000" ghcr.io/barelyhuman/goblin:nightly +$ docker run -e "GOBLIN_ORIGIN_URL=example.com" -p "3000:3000" ghcr.io/barelyhuman/goblin:latest ``` #### Using Docker @@ -155,8 +154,8 @@ ORIGIN_URL= ```sh # www/.env -# the same url as ORIGIN_URL but added again because vite needs it in the repo -VITE_GOBLIN_ORIGIN_URL= +# the same url as ORIGIN_URL but added again because the static build needs it in the repo +GOBLIN_ORIGIN_URL= ``` running the `build.sh` should handle building with the needed env files and