There was an error while loading. Please reload this page.
1 parent bafb3a2 commit 43a661fCopy full SHA for 43a661f
1 file changed
Dockerfile
@@ -2,6 +2,11 @@
2
# Image with Github tools
3
#
4
5
+###### Build gha-token tool
6
+FROM golang:1.24.4-alpine3.21 AS build
7
+RUN go install github.com/slawekzachcial/gha-token@1.1.0
8
+
9
+###### Final image
10
FROM alpine:3.21
11
12
RUN apk add --no-cache git github-cli bash openssh curl \
@@ -11,6 +16,7 @@ RUN apk add --no-cache git github-cli bash openssh curl \
16
&& chmod 700 /home/git/.ssh
17
13
18
ADD files/known_hosts /home/git/.ssh/known_hosts
19
+COPY --from=build /go/bin/gha-token /usr/bin/gha-token
14
20
15
21
WORKDIR /home/git
22
USER 1100
0 commit comments