Commit d93208cd authored by Georgi Petkov's avatar Georgi Petkov
Browse files

chore: upgrade to build:node16 deploy:node16 and runtime:node16

parent 16ab2c90
image: "node:15.14"
image: "node:16.0.0"
variables:
FF_GITLAB_REGISTRY_HELPER_IMAGE: 1
......
build:
image: registry.brickblock.sh/devops/docker/build:upgrade
image: registry.brickblock.sh/devops/docker/build:node16
stage: test
extends:
- .except-ci-release
......
......@@ -23,7 +23,7 @@ tag:
production:
stage: deploy
image: registry.brickblock.sh/devops/deploy:upgrade
image: registry.brickblock.sh/devops/deploy:node16
variables:
NODE_ENV: production
GOOGLE_PROJECT: bbk-production
......
review:
stage: review
image: registry.brickblock.sh/devops/deploy:upgrade
image: registry.brickblock.sh/devops/deploy:node16
variables:
NODE_ENV: review
GOOGLE_PROJECT: bbk-review
......@@ -76,7 +76,7 @@ review:
stop_review:
stage: review
image: registry.brickblock.sh/devops/deploy:upgrade
image: registry.brickblock.sh/devops/deploy:node16
variables:
GIT_STRATEGY: fetch
NODE_ENV: review
......@@ -150,7 +150,7 @@ stop_review:
master_deploy_to_review:
stage: deploy
image: registry.brickblock.sh/devops/deploy:upgrade
image: registry.brickblock.sh/devops/deploy:node16
variables:
NODE_ENV: review
GOOGLE_PROJECT: bbk-review
......
staging:
stage: deploy
image: registry.brickblock.sh/devops/deploy:upgrade
image: registry.brickblock.sh/devops/deploy:node16
variables:
NODE_ENV: staging
GOOGLE_PROJECT: bbk-staging
......
start-app:
image: registry.brickblock.sh/devops/docker/build:latest
image: registry.brickblock.sh/devops/docker/build:node16
stage: test
extends:
- .except-ci-release
......
test:
image: registry.brickblock.sh/devops/docker/build:upgrade
image: registry.brickblock.sh/devops/docker/build:node16
stage: test
extends:
- .except-ci-release
......
FROM node:10 as build
FROM node:16.0.0 as build
WORKDIR /app
# Needed to tell webpack what environment to build for
......
###############
# BUILD IMAGE #
###############
FROM node:10-alpine3.9 as build
FROM node:16.0.0-alpine3.13 as build
WORKDIR /app
......@@ -10,8 +10,9 @@ RUN apk update && apk add --no-cache --virtual deps git python3 make g++ ca-cert
{{#if strongConfig}}
# Install sops
ADD https://github.com/mozilla/sops/releases/download/3.1.1/sops-3.1.1.linux /usr/bin
RUN mv /usr/bin/sops-3.1.1.linux /usr/bin/sops && chmod +x /usr/bin/sops
ENV SOPS_LATEST_VERSION="v3.7.0"
ADD https://github.com/mozilla/sops/releases/download/${SOPS_LATEST_VERSION}/sops-${SOPS_LATEST_VERSION}.linux /usr/bin
RUN mv /usr/bin/sops-${SOPS_LATEST_VERSION}.linux /usr/bin/sops && chmod +x /usr/bin/sops
{{/if}}
# 1. Copy dependency specifications first, so we only have to re-install
......@@ -31,18 +32,19 @@ RUN yarn install --frozen-lockfile --production --ignore-scripts
#################
# RUNTIME IMAGE #
#################
FROM node:10.13-alpine
FROM node:16.0.0-alpine3.13
WORKDIR /app
# Create new user to be able to the server process without root privileges
RUN adduser -D app
RUN apk add --no-cache tini=0.18.0-r0 bash=4.4.19-r1 ca-certificates=20190108-r0
RUN apk add --no-cache tini bash ca-certificates
{{#if strongConfig}}
# Install sops
ADD https://github.com/mozilla/sops/releases/download/3.1.1/sops-3.1.1.linux /usr/bin
RUN mv /usr/bin/sops-3.1.1.linux /usr/bin/sops && chmod +x /usr/bin/sops
ENV SOPS_LATEST_VERSION="v3.7.0"
ADD https://github.com/mozilla/sops/releases/download/${SOPS_LATEST_VERSION}/sops-${SOPS_LATEST_VERSION}.linux /usr/bin
RUN mv /usr/bin/sops-${SOPS_LATEST_VERSION}.linux /usr/bin/sops && chmod +x /usr/bin/sops
{{/if}}
# Copy over built application from build image above
......
......@@ -69,7 +69,7 @@
"properties": {
"image": {
"type": "string",
"default": "node:10",
"default": "node:16.0.0",
"description": "Default image used for CI runners"
},
"branch": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment