Skip to content

Commit ee80fc5

Browse files
authored
ci: cleanup for images (#28)
* ci: add a cleanup for the images * ci: add it as a schedule * docs: update for the current images
1 parent 82089ed commit ee80fc5

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

.github/workflows/cleanup.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Cleaner
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 12,25 * *"
7+
8+
jobs:
9+
cleanup:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
steps:
17+
- uses: actions/delete-package-versions@v5
18+
with:
19+
package-name: goblin
20+
package-type: container
21+
min-versions-to-keep: 10
22+
ignore-versions: '(v?\d+\.\d+\.\d+|latest|(nightly[-]\w+))'

readme.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ simpler fashion**
8383

8484
### Existing Image
8585

86-
The repository builds a nightly image that you can use directly if you don't
87-
wish to tweak anything.
86+
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
8887

8988
```sh
90-
$ docker run -p "3000:3000" ghcr.io/barelyhuman/goblin:nightly
89+
$ docker run -p "3000:3000" ghcr.io/barelyhuman/goblin:latest
9190
# change the domain to whatever you are using for it
92-
$ docker run -e "GOBLIN_ORIGIN_URL=example.com" -p "3000:3000" ghcr.io/barelyhuman/goblin:nightly
91+
$ docker run -e "GOBLIN_ORIGIN_URL=example.com" -p "3000:3000" ghcr.io/barelyhuman/goblin:latest
9392
```
9493

9594
#### Using Docker
@@ -155,8 +154,8 @@ ORIGIN_URL=
155154
```sh
156155
# www/.env
157156

158-
# the same url as ORIGIN_URL but added again because vite needs it in the repo
159-
VITE_GOBLIN_ORIGIN_URL=
157+
# the same url as ORIGIN_URL but added again because the static build needs it in the repo
158+
GOBLIN_ORIGIN_URL=
160159
```
161160

162161
running the `build.sh` should handle building with the needed env files and

0 commit comments

Comments
 (0)