Skip to content

Commit

Permalink
Clone nodejs/node in workflow and copy to build context
Browse files Browse the repository at this point in the history
The git client seems unreliable when cloning on armv6hf
so stick to native tools for the clone.

Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Apr 17, 2024
1 parent a0349c8 commit 3a074c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,18 @@ jobs:

steps:
# https://github.com/actions/checkout
- name: Checkout
- name: Checkout node-arm
uses: actions/[email protected]

# https://github.com/actions/checkout
- name: Checkout nodejs/node
uses: actions/[email protected]
with:
repository: nodejs/node
ref: v${{ env.NODE_VERSION }}
fetch-depth: 1
path: node

# https://github.com/aws-actions/configure-aws-credentials
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ FROM ${DISTRO} AS build

WORKDIR /src

RUN git clone https://github.com/nodejs/node.git .
COPY node/ ./
COPY commit-table ./commit-table

ARG NODE_VERSION
COPY commit-table ./commit-table

RUN commit="$(awk -v version="v${NODE_VERSION}" '$2 == version {print $1}' commit-table)" && \
if [ -z "${commit}" ]; then echo "commit for v$NODE_VERSION not found!" ; exit 1 ; fi && \
Expand Down

0 comments on commit 3a074c5

Please sign in to comment.