Skip to content

Commit c26a5a5

Browse files
authored
chore: minor project clean up (#3)
1 parent 010faec commit c26a5a5

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github
2+
.git
3+
.gitignore
4+
samples
5+
README.md
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: pull-request
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Build image
16+
run: docker build .

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- Dockerfile # only release when the Dockerfile changes, as it's the only build artifact
810

911
permissions:
1012
contents: write
@@ -14,7 +16,7 @@ jobs:
1416
release:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6
1820

1921
- name: Get next version
2022
uses: jveldboom/action-conventional-versioning@v1

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ RUN git clone https://github.com/google/guetzli.git \
1616

1717
RUN cd guetzli && make
1818

19-
WORKDIR /tmp
19+
WORKDIR /data
2020

2121
ENTRYPOINT ["/opt/google/guetzli/bin/Release/guetzli"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Visit https://github.com/google/guetzli for Guetzli's full documentation
55

66
## Usage
77
```sh
8-
docker --rm -v $(PWD):/tmp ghcr.io/jveldboom/docker-google-guetzli:latest \
8+
docker run --rm -v $(pwd):/data ghcr.io/jveldboom/docker-google-guetzli:latest \
99
input.jpg output.jpg
1010
```
1111

1212
## Run Examples
1313
```sh
14-
docker run --rm -v $(PWD):/tmp ghcr.io/jveldboom/docker-google-guetzli:latest \
14+
docker run --rm -v $(pwd):/data ghcr.io/jveldboom/docker-google-guetzli:latest \
1515
--quality 85 ./samples/bees.png ./samples/bees-out.png
1616
```
1717

0 commit comments

Comments
 (0)