From d316ccbc06d276f80947f8fd4ba076a570735181 Mon Sep 17 00:00:00 2001 From: Svetlana Maltseva <5437289+leo-ri@users.noreply.github.com> Date: Tue, 26 Jan 2021 15:40:57 +0300 Subject: [PATCH 1/3] GHaction: change base image --- .github/actions/push-files/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/push-files/Dockerfile b/.github/actions/push-files/Dockerfile index 696ebaa86b..ea1b136333 100644 --- a/.github/actions/push-files/Dockerfile +++ b/.github/actions/push-files/Dockerfile @@ -1,10 +1,13 @@ -FROM alpine/git:latest +#TODO change to alpine +FROM ubuntu:18.04 + # Install GitHub CLI +RUN apt-get update && \ + apt-get install -y --no-install-recommends git RUN mkdir /ghcli && \ cd /ghcli && \ - wget http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/github-cli-1.3.1-r0.apk && \ - apk update && \ - apk add --allow-untrusted github-cli-1.3.1-r0.apk + wget https://github.com/cli/cli/releases/download/v1.0.0/gh_1.0.0_linux_386.tar.gz -O ghcli.tar.gz && \ + tar --strip-components=1 -xf ghcli.tar.gz # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /home/entrypoint.sh From 4d31b71275936b3a6d31e9953f1034b346514f07 Mon Sep 17 00:00:00 2001 From: Svetlana Maltseva <5437289+leo-ri@users.noreply.github.com> Date: Tue, 26 Jan 2021 15:49:56 +0300 Subject: [PATCH 2/3] GHAction: +wget (temp image) --- .github/actions/push-files/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/push-files/Dockerfile b/.github/actions/push-files/Dockerfile index ea1b136333..bf6360161b 100644 --- a/.github/actions/push-files/Dockerfile +++ b/.github/actions/push-files/Dockerfile @@ -3,10 +3,10 @@ FROM ubuntu:18.04 # Install GitHub CLI RUN apt-get update && \ - apt-get install -y --no-install-recommends git + apt-get install -y --no-install-recommends git wget RUN mkdir /ghcli && \ cd /ghcli && \ - wget https://github.com/cli/cli/releases/download/v1.0.0/gh_1.0.0_linux_386.tar.gz -O ghcli.tar.gz && \ + 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 && \ tar --strip-components=1 -xf ghcli.tar.gz # Copies your code file from your action repository to the filesystem path `/` of the container From 1b19f24c42d0694243370d3ca6bdef918073a5d7 Mon Sep 17 00:00:00 2001 From: Svetlana Maltseva <5437289+leo-ri@users.noreply.github.com> Date: Tue, 26 Jan 2021 16:05:18 +0300 Subject: [PATCH 3/3] GHAction: remove --- .github/actions/push-files/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/push-files/Dockerfile b/.github/actions/push-files/Dockerfile index bf6360161b..8720f24d11 100644 --- a/.github/actions/push-files/Dockerfile +++ b/.github/actions/push-files/Dockerfile @@ -4,9 +4,7 @@ FROM ubuntu:18.04 # Install GitHub CLI RUN apt-get update && \ apt-get install -y --no-install-recommends git wget -RUN mkdir /ghcli && \ - cd /ghcli && \ - 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 && \ +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 && \ tar --strip-components=1 -xf ghcli.tar.gz # Copies your code file from your action repository to the filesystem path `/` of the container