🚀 fix action

This commit is contained in:
platane
2020-07-20 10:18:24 +02:00
parent a4ea2a4a46
commit 8a06b668cd
9 changed files with 58 additions and 29 deletions

View File

@@ -4,7 +4,16 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends gifsicle graphicsmagick \
&& rm -rf /var/lib/apt/lists/*
COPY packages/action/dist/* ./github-contribution-grid-snake
COPY tsconfig.json package.json yarn.lock /github/snk/
COPY packages /github/snk/packages
CMD ["node", "github-contribution-grid-snake/index.js"]
RUN ( \
cd /github/snk \
&& find . \
&& yarn install --frozen-lockfile \
&& yarn build:action \
&& mv packages/action/dist/* . \
&& rm -rf packages tsconfig.json package.json yarn.lock node_modules \
)
CMD ["node", "/github/snk/index.js"]