Commit e691d7bc authored by Moul's avatar Moul
Browse files

Initial commit for VuePress image creation automation

parents
Pipeline #14493 passed with stage
in 1 minute and 33 seconds
test_build_image:
image: docker:git
tags:
- docker
services:
- docker:dind
script:
- docker build .
except:
- tags
build_image:
image: docker:git
tags:
- docker
services:
- docker:dind
script:
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" .
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- tags
FROM node:16-bullseye-slim
# Install VuePress
RUN npm install -g vuepress
This diff is collapsed.
## VuePress image
The goal of this repository is to provide an image to build websites using [VuePress](https://www.npmjs.com/package/vuepress).
There is currently [Silkaj website](https://git.duniter.org/websites/doc_silkaj) using it.
The image is based on the [official Node.js images](https://hub.docker.com/_/node/?tab=description), based on Debian Bullseye Slim, with [VuePress](https://vuepress.vuejs.org/) on top.
Supports Markdown
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