Skip to content

Commit

Permalink
jbang v0.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen committed Jul 31, 2020
1 parent b6fd6ad commit 249feb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM adoptopenjdk:11-jdk-hotspot

RUN curl -Ls "https://github.com/jbangdev/jbang/releases/download/v0.35.0/jbang-0.35.0.zip" --output jbang.zip \
RUN curl -Ls "https://github.com/jbangdev/jbang/releases/download/v0.35.1/jbang-0.35.1.zip" --output jbang.zip \
&& jar xf jbang.zip && rm jbang.zip && mv jbang-* jbang && chmod +x jbang/bin/jbang

ADD ./entrypoint /bin/entrypoint

ENV SCRIPTS_HOME /scripts
ENV JBANG_VERSION 0.35.0
ENV JBANG_VERSION 0.35.1

RUN useradd -u 10001 -r -g 0 -m \
-d ${SCRIPTS_HOME} -s /sbin/nologin -c "jbang user" jo \
Expand All @@ -23,5 +23,8 @@ USER 10001

ENV PATH="${PATH}:/jbang/bin"

## github action does not allow writing to $HOME thus routing this elsewhere
ENV JBANG_DIR="/jbang/.jbang"

ENTRYPOINT ["entrypoint"]
CMD ["--help"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
restore-keys: |
${{ runner.os }}-jbang-
- name: jbang
uses: jbangdev/jbang-action@v0.35.0
uses: jbangdev/jbang-action@v0.35.1
with:
script: createissue.java
args: "my world"
Expand Down

0 comments on commit 249feb7

Please sign in to comment.