Skip to content

Commit 0482005

Browse files
committedFeb 26, 2019
init
0 parents  commit 0482005

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed
 

‎.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ignore all files by default
2+
*
3+
# include required files with an exception
4+
!entrypoint.sh

‎Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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"]

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

‎entrypoint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

Comments
 (0)
Failed to load comments.