Skip to content

Commit 46dac5a

Browse files
author
Joe Cardella
committed
Add DIFFY_VERSION docker arg and update readme
1 parent 7b25fb3 commit 46dac5a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ This Docker image adds the [diffy cli](https://github.com/DiffyWebsite/diffy-cli
88

99
* To generate new images for the latest diffy cli version:
1010
* * Go to the [diffy cli repo](https://github.com/DiffyWebsite/diffy-cli) and find the latest version.
11-
* * Update the `src/Dockerfile` and set the docker image tag to the latest version number: ex `0.1.22`
11+
* * Update the `src/Dockerfile` and set the DIFFY_VERSION variable to the desired version.
1212
* * Commit and tag the main branch with `v` followed by the version number: ex `v0.1.22`
13-
* * Push the udpates and tag upstream.
13+
* * Push the updates and tag upstream.
1414

1515
## Security Reports
1616

src/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM alpine:latest
2+
ARG DIFFY_VERSION=0.1.22
23
RUN apk update && \
34
apk add openssl php php-openssl php-phar php-iconv && \
4-
wget -O /usr/local/bin/diffy https://github.com/DiffyWebsite/diffy-cli/releases/download/0.1.22/diffy.phar && \
5+
wget -O /usr/local/bin/diffy https://github.com/DiffyWebsite/diffy-cli/releases/download/${DIFFY_VERSION}/diffy.phar && \
56
chmod u+x /usr/local/bin/diffy

0 commit comments

Comments
 (0)