Skip to content

Commit f89f370

Browse files
authored
GHA: alpine (#59)
1 parent 4b7471e commit f89f370

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/actions/create-pr/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM alpine/git:latest
22
# Install GitHub CLI
3-
RUN mkdir /ghcli && \
4-
cd /ghcli && \
5-
wget http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/github-cli-1.3.1-r0.apk && \
6-
apk update && \
7-
apk add --allow-untrusted github-cli-1.3.1-r0.apk
3+
RUN apk update && \
4+
apk add --no-cache libc6-compat
5+
RUN mkdir ghcli && cd ghcli && \
6+
wget https://github.com/cli/cli/releases/download/v1.5.0/gh_1.5.0_linux_386.tar.gz -O ghcli.tar.gz --no-check-certificate && \
7+
tar --strip-components=1 -xf ghcli.tar.gz -C /usr/local
88

99
# Copies your code file from your action repository to the filesystem path `/` of the container
1010
COPY entrypoint.sh /home/entrypoint.sh

.github/actions/push-files/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#TODO change to alpine
2-
FROM ubuntu:18.04
2+
FROM alpine/git:latest
33

44
# Install GitHub CLI
5-
RUN apt-get update && \
6-
apt-get install -y --no-install-recommends git wget
7-
RUN wget https://github.com/cli/cli/releases/download/v1.0.0/gh_1.0.0_linux_386.tar.gz -O ghcli.tar.gz --no-check-certificate && \
8-
tar --strip-components=1 -xf ghcli.tar.gz
5+
RUN apk update && \
6+
apk add --no-cache libc6-compat
7+
RUN mkdir ghcli && cd ghcli && \
8+
wget https://github.com/cli/cli/releases/download/v1.5.0/gh_1.5.0_linux_386.tar.gz -O ghcli.tar.gz --no-check-certificate && \
9+
tar --strip-components=1 -xf ghcli.tar.gz -C /usr/local
910

1011
# Copies your code file from your action repository to the filesystem path `/` of the container
1112
COPY entrypoint.sh /home/entrypoint.sh

0 commit comments

Comments
 (0)