mirror of
https://gitlab.com/djdietrick/docs
synced 2026-05-03 00:20:54 -04:00
Test deploying to gitlab pages
This commit is contained in:
@@ -3,22 +3,36 @@ variables:
|
|||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- pages
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
build:
|
pages:
|
||||||
stage: build
|
stage: pages
|
||||||
image:
|
cache:
|
||||||
name: amazon/aws-cli
|
paths:
|
||||||
entrypoint: [""]
|
- node_modules/
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
before_script:
|
|
||||||
- amazon-linux-extras install docker
|
|
||||||
script: |
|
script: |
|
||||||
docker build -t $DOCKER_REGISTRY/$REPOSITORY_NAME:$CI_PIPELINE_ID -t $DOCKER_REGISTRY/$REPOSITORY_NAME:latest .
|
npm install
|
||||||
aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY
|
npm run build
|
||||||
docker push $DOCKER_REGISTRY/$REPOSITORY_NAME --all-tags
|
mkdir public
|
||||||
|
cp -R .vitepress/dist/* public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
# build:
|
||||||
|
# stage: build
|
||||||
|
# image:
|
||||||
|
# name: amazon/aws-cli
|
||||||
|
# entrypoint: [""]
|
||||||
|
# services:
|
||||||
|
# - docker:dind
|
||||||
|
# before_script:
|
||||||
|
# - amazon-linux-extras install docker
|
||||||
|
# script: |
|
||||||
|
# docker build -t $DOCKER_REGISTRY/$REPOSITORY_NAME:$CI_PIPELINE_ID -t $DOCKER_REGISTRY/$REPOSITORY_NAME:latest .
|
||||||
|
# aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY
|
||||||
|
# docker push $DOCKER_REGISTRY/$REPOSITORY_NAME --all-tags
|
||||||
|
|
||||||
# variables:
|
# variables:
|
||||||
# SERVICE_NAME: "docs"
|
# SERVICE_NAME: "docs"
|
||||||
|
|||||||
Reference in New Issue
Block a user