Skip to content

Commit e4f15fe

Browse files
authored
docker/gh/act/: Add Docker recipe for use with act (#3135)
added gh bin Signed-off-by: Ryan Northey <[email protected]>
1 parent b58ff2f commit e4f15fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker/gh/act/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM catthehacker/ubuntu:act-latest
2+
3+
RUN sudo mkdir -p -m 755 /etc/apt/keyrings \
4+
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
5+
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
6+
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
7+
&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
8+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
9+
&& sudo apt update \
10+
&& sudo apt install gh -y

0 commit comments

Comments
 (0)