Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DevOps
Project Templates
Commits
d93208cd
Commit
d93208cd
authored
Apr 28, 2021
by
Georgi Petkov
Browse files
chore: upgrade to build:node16 deploy:node16 and runtime:node16
parent
16ab2c90
Changes
10
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d93208cd
image
:
"
node:1
5.14
"
image
:
"
node:1
6.0.0
"
variables
:
FF_GITLAB_REGISTRY_HELPER_IMAGE
:
1
...
...
gitlab-ci/build.yml
View file @
d93208cd
build
:
image
:
registry.brickblock.sh/devops/docker/build:
upgrade
image
:
registry.brickblock.sh/devops/docker/build:
node16
stage
:
test
extends
:
-
.except-ci-release
...
...
gitlab-ci/production.yml
View file @
d93208cd
...
...
@@ -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
...
...
gitlab-ci/review.yml
View file @
d93208cd
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
...
...
gitlab-ci/staging.yml
View file @
d93208cd
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
...
...
gitlab-ci/start-app.yml
View file @
d93208cd
start-app
:
image
:
registry.brickblock.sh/devops/docker/build:
latest
image
:
registry.brickblock.sh/devops/docker/build:
node16
stage
:
test
extends
:
-
.except-ci-release
...
...
gitlab-ci/test.yml
View file @
d93208cd
test
:
image
:
registry.brickblock.sh/devops/docker/build:
upgrade
image
:
registry.brickblock.sh/devops/docker/build:
node16
stage
:
test
extends
:
-
.except-ci-release
...
...
presets/cra/Dockerfile
View file @
d93208cd
FROM
node:10 as build
FROM
node:1
6.0.
0 as build
WORKDIR
/app
# Needed to tell webpack what environment to build for
...
...
presets/rest-api/Dockerfile
View file @
d93208cd
###############
# BUILD IMAGE #
###############
FROM
node:10-alpine3.
9
as build
FROM
node:1
6.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:1
0.13
-alpine
FROM
node:1
6.0.0
-alpine
3.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
...
...
schema.json
View file @
d93208cd
...
...
@@ -69,7 +69,7 @@
"properties"
:
{
"image"
:
{
"type"
:
"string"
,
"default"
:
"node:10"
,
"default"
:
"node:1
6.0.
0"
,
"description"
:
"Default image used for CI runners"
},
"branch"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment