Skip to content
Snippets Groups Projects
Commit e5515c9c authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

ci(docker): update NodeJS and NPM

parent 3f397a5a
No related branches found
No related tags found
No related merge requests found
FROM debian:bullseye-slim FROM debian:bullseye-slim
LABEL version="2.0.0" \ LABEL version="2.0.1" \
description="Prerequisites for Hugo build with hugo-geekdoc theme" description="Prerequisites for Hugo build with hugo-geekdoc theme"
# System prerequisites # System prerequisites
...@@ -17,3 +17,9 @@ RUN apt-get update && \ ...@@ -17,3 +17,9 @@ RUN apt-get update && \
RUN cat /etc/os-release && \ RUN cat /etc/os-release && \
npm -v && \ npm -v && \
node -v node -v
#####################################
# Debian 11 (bullseye)
# npm 7.5.2
# node v12.22.12
#####################################
...@@ -7,7 +7,7 @@ Docker image of prerequisites for **Hugo** build with **hugo-geekdoc** theme. ...@@ -7,7 +7,7 @@ Docker image of prerequisites for **Hugo** build with **hugo-geekdoc** theme.
### Edit Dockerfile ### Edit Dockerfile
Edit [Dockerfile](Dockerfile) according to your needs Edit [Dockerfile](Dockerfile) according to your needs
and in addition you must to change in this file `LABEL version="2.0.0"` and in addition you must to change in this file `LABEL version="2.0.1"`
following [semantic versioning](http://semver.org/) recommendations: following [semantic versioning](http://semver.org/) recommendations:
```shell script ```shell script
...@@ -19,7 +19,7 @@ following [semantic versioning](http://semver.org/) recommendations: ...@@ -19,7 +19,7 @@ following [semantic versioning](http://semver.org/) recommendations:
```dockerfile ```dockerfile
FROM debian:buster-slim FROM debian:buster-slim
LABEL version="2.0.0" \ LABEL version="2.0.1" \
description="Prerequisites for Hugo build with hugo-geekdoc theme" description="Prerequisites for Hugo build with hugo-geekdoc theme"
``` ```
...@@ -34,7 +34,7 @@ Build new Docker image and push to [Gitlab container registry](https://gitlab.ad ...@@ -34,7 +34,7 @@ Build new Docker image and push to [Gitlab container registry](https://gitlab.ad
GITLAB_URI="gitlab.adullact.net:4567" GITLAB_URI="gitlab.adullact.net:4567"
GITLAB_REPOSITORY="adullact/faq.adullact.org" GITLAB_REPOSITORY="adullact/faq.adullact.org"
DOCKER_IMAGE_NAME="build_hugo_prerequisites" DOCKER_IMAGE_NAME="build_hugo_prerequisites"
DOCKER_IMAGE_VERSION="v2.0.0" # must be identical to LABEL.version in Dockerfile DOCKER_IMAGE_VERSION="v2.0.1" # must be identical to LABEL.version in Dockerfile
# Login to Gitlab # Login to Gitlab
docker login "${GITLAB_URI}" docker login "${GITLAB_URI}"
......
...@@ -36,7 +36,7 @@ build_PROD: ...@@ -36,7 +36,7 @@ build_PROD:
############################################################### ###############################################################
.build_common: .build_common:
stage: build stage: build
image: gitlab.adullact.net:4567/adullact/faq.adullact.org/build_hugo_prerequisites:v2.0.0 image: gitlab.adullact.net:4567/adullact/faq.adullact.org/build_hugo_prerequisites:v2.0.1
cache: cache:
key: $CI_JOB_NAME key: $CI_JOB_NAME
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment