File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .github
2+ .git
3+ .gitignore
4+ samples
5+ README.md
Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8+ paths :
9+ - Dockerfile # only release when the Dockerfile changes, as it's the only build artifact
810
911permissions :
1012 contents : write
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
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ RUN git clone https://github.com/google/guetzli.git \
1616
1717RUN cd guetzli && make
1818
19- WORKDIR /tmp
19+ WORKDIR /data
2020
2121ENTRYPOINT ["/opt/google/guetzli/bin/Release/guetzli" ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments