CI: properly set version for rolling Docker image release

This commit is contained in:
Jesse Chan
2020-12-11 20:06:25 +08:00
parent 4c651eebcd
commit 4f46c0ee40
2 changed files with 9 additions and 2 deletions

View File

@@ -28,10 +28,11 @@ RUN npm pack
FROM ${NODE_IMAGE} as flood
# Copy package built
COPY --from=nodebuild /usr/src/app/flood-*.tgz /tmp/
RUN rm -rf /tmp/*
COPY --from=nodebuild /usr/src/app/*.tgz /tmp/
# Install package and then remove caches
RUN npm i -g /tmp/flood-*.tgz && rm -rf /tmp/* /root/*
RUN npm i -g /tmp/*.tgz && rm -rf /tmp/* /root/*
# Install runtime dependencies
RUN apk --no-cache add \