Update
This commit is contained in:
Родитель
1bd365b9dd
Коммит
21ce7e5159
|
@ -1,2 +0,0 @@
|
|||
node_modules
|
||||
npm-debug.log
|
|
@ -29,12 +29,6 @@ jobs:
|
|||
name: linux_artifact_${{ matrix.node-version }}
|
||||
path: build/stage/
|
||||
retention-days: 1
|
||||
# Generate musl binaries using Alpine Linux
|
||||
# TODO: mhart/alpine-node:17 not currently available
|
||||
# TODO: mhart/alpine-node:15 fails to install virtualenv
|
||||
- run: if [[ ${{ matrix.node-version }} != 8 && ${{ matrix.node-version }} != 15 && ${{ matrix.node-version }} != 17 ]]; then docker build --build-arg VERSION=${{ matrix.node-version }} -t tmp/alpine-native-metrics .; fi;
|
||||
- run: if [[ ${{ matrix.node-version }} != 8 && ${{ matrix.node-version }} != 15 && ${{ matrix.node-version }} != 17 ]]; then docker run -e NODE_PRE_GYP_GITHUB_TOKEN tmp/alpine-native-metrics; fi;
|
||||
|
||||
- name: Publish
|
||||
# Publish not compatible with node 8, need to manually upload the files
|
||||
if: ${{ matrix.node-version != '8' }}
|
||||
|
|
25
Dockerfile
25
Dockerfile
|
@ -1,25 +0,0 @@
|
|||
ARG VERSION=latest
|
||||
FROM mhart/alpine-node:${VERSION}
|
||||
|
||||
WORKDIR .
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN node --version
|
||||
|
||||
# Install Python dependencies
|
||||
RUN apk add --update \
|
||||
python3 \
|
||||
py3-pip \
|
||||
build-base \
|
||||
&& pip3 install virtualenv --ignore-installed distlib\
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# Build & Test
|
||||
RUN npm install
|
||||
RUN npm run build:ts
|
||||
RUN npm run build
|
||||
RUN npm run package
|
||||
|
||||
# # Publish binary to github
|
||||
CMD npm run publish:github
|
Загрузка…
Ссылка в новой задаче