ci: adjust npm & node versions and use npm ci

This commit is contained in:
Rainer Killinger
2021-08-06 13:12:30 +02:00
parent 5435f85cc4
commit 873d6459b5
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
image: registry.gitlab.com/openstapps/app image: registry.gitlab.com/openstapps/app
before_script: before_script:
- npm install - npm ci
default: default:
tags: tags:

View File

@@ -8,7 +8,7 @@ LABEL version="2.0.0" \
### Configure versions to install ### Configure versions to install
ENV ANDROID_APIS="android-30" \ ENV ANDROID_APIS="android-30" \
ANDROID_BUILD_TOOLS_VERSION="30.0.2" \ ANDROID_BUILD_TOOLS_VERSION="30.0.2" \
NPM_VERSION="latest" \ NPM_VERSION="^6.0.0" \
IONIC_VERSION="^6.0.0" \ IONIC_VERSION="^6.0.0" \
CORDOVA_VERSION="^10.0.0" \ CORDOVA_VERSION="^10.0.0" \
CORDOVA_RES_VERSION="latest" \ CORDOVA_RES_VERSION="latest" \

View File

@@ -2,7 +2,7 @@
# Dependencies need to be installed beforehand # Dependencies need to be installed beforehand
# Needs to be build beforehand # Needs to be build beforehand
# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable . # docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable .
FROM node:10-alpine FROM node:14-alpine
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
@@ -17,4 +17,4 @@ EXPOSE 8100
RUN npm rebuild node-sass RUN npm rebuild node-sass
# Starts the app # Starts the app
CMD ng run app:serve --host=0.0.0.0 --port=8100 CMD ng run app:serve --host=0.0.0.0 --port=8100