4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ignore all files by default
2
+ *
3
+ # include required files with an exception
4
+ ! entrypoint.sh
Original file line number Diff line number Diff line change
1
+ FROM ubuntu
2
+
3
+ LABEL "name" ="Jira CLI"
4
+ LABEL "maintainer" ="Dima Rudzik <drudzik+githubactions@atlassian.net>"
5
+ LABEL "version" ="1.0.0"
6
+
7
+ LABEL "com.github.actions.name" ="Jira CLI"
8
+ LABEL "com.github.actions.description" ="Wraps the Jira CLI to enable Jira commands."
9
+ LABEL "com.github.actions.icon" ="check-square"
10
+ LABEL "com.github.actions.color" ="blue"
11
+
12
+ RUN apt-get update && apt-get install -yq wget && apt-get clean
13
+ RUN wget -q https://github.com/Netflix-Skunkworks/go-jira/releases/download/v1.0.20/jira-linux-amd64 \
14
+ && chmod +x jira-linux-amd64
15
+
16
+ COPY entrypoint.sh /entrypoint.sh
17
+ RUN chmod +x /entrypoint.sh
18
+
19
+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ # CLI
2
+ Wrapped [ go-jira CLI] ( https://github.com/Netflix-Skunkworks/go-jira )
3
+ ## Consumes
4
+ ### Files
5
+ - ` $HOME/.jira.d/credentials ` - Credentials file
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -eu
3
+
4
+ export $( grep -v ' ^#' " $HOME /.jira.d/credentials" | xargs -d ' \n' )
5
+
6
+ sh -c " /jira-linux-amd64 $* "
0 commit comments