-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (28 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu
RUN apt-get update &&\
apt-get install git -y &&\
apt-get install python3 -y && \
apt-get install curl -y
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash
RUN apt-get install -y nodejs
LABEL repository="https://github.com/tefkah/actions-split-monorepo"
LABEL homepage="https://github.com/johno/actions-split-monorepo"
LABEL maintainer="Thomas F. K. Jorna <[email protected]>"
LABEL com.github.actions.name="GitHub Action to Split a Monorepo into Multiple Repositories"
LABEL com.github.actions.description="Automatically push subdirectories in a monorepo to their own repositories"
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="purple"
RUN git config --system --add safe.directory /github/workspace
RUN git config --system --add safe.directory /github/workspace/.git
RUN git config --system --add safe.directory /tmp/monorepo_split/build_directory
RUN git config --global init.defaultBranch main
COPY git-filter-repo /git-filter-repo
COPY dist/entrypoint.js /entrypoint.js
COPY dist/entrypoint.js entrypoint.js
COPY package.json /package.json
RUN ls
RUN node -v
RUN npm install
RUN chmod +x entrypoint.js
RUN chmod +x git-filter-repo
ENTRYPOINT ["node", "/entrypoint.js"]