mirror of
https://gitlab.com/djdietrick/docs
synced 2026-05-03 03:50:54 -04:00
Compare commits
6 Commits
91d726c7f9
...
df494fbc70
| Author | SHA1 | Date | |
|---|---|---|---|
| df494fbc70 | |||
| 5b0277f294 | |||
| 4f4a56713d | |||
| d572419762 | |||
| 4872f61dd2 | |||
| 1dfab518ed |
@@ -1,41 +1,18 @@
|
|||||||
variables:
|
|
||||||
REPOSITORY_NAME: djdietrick/docs
|
|
||||||
DOCKER_HOST: tcp://docker:2375
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- pages
|
||||||
- deploy
|
|
||||||
|
|
||||||
build:
|
image: node:18
|
||||||
stage: build
|
pages:
|
||||||
image:
|
stage: pages
|
||||||
name: amazon/aws-cli
|
pages: true
|
||||||
entrypoint: [""]
|
cache:
|
||||||
services:
|
paths:
|
||||||
- docker:dind
|
- node_modules/
|
||||||
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 ./docs/.vitepress/dist/* ./public
|
||||||
# variables:
|
artifacts:
|
||||||
# SERVICE_NAME: "docs"
|
paths:
|
||||||
|
- public
|
||||||
# stages:
|
|
||||||
# - deploy
|
|
||||||
|
|
||||||
# deploy:
|
|
||||||
# stage: deploy
|
|
||||||
# only:
|
|
||||||
# - master # This pipeline stage will run on this branch alone
|
|
||||||
|
|
||||||
# image: google/cloud-sdk:latest # We'll use Google Cloud SDK for Cloud Run related commands
|
|
||||||
# script:
|
|
||||||
# - echo $GCP_SERVICE_ACCOUNT > gcloud-service-key.json # Save Google cloud contents in a temporary json file
|
|
||||||
# - gcloud auth activate-service-account --key-file gcloud-service-key.json # Activate your service account
|
|
||||||
# - gcloud auth configure-docker # Configure docker environment
|
|
||||||
# - gcloud config set project $GCP_PROJECT_ID #Set the GCP Project ID to the variable name
|
|
||||||
# - gcloud builds submit --tag gcr.io/$GCP_PROJECT_ID/$SERVICE_NAME #Run the gcloud build command to build our image
|
|
||||||
# - gcloud run deploy $SERVICE_NAME --image gcr.io/$GCP_PROJECT_ID/$SERVICE_NAME --region=us-east4 --platform managed --allow-unauthenticated # Run the gcloud run deploy command to deploy our new service
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
title: "Docs.Dietrick.Dev",
|
title: "Docs.Dietrick.Dev",
|
||||||
descript: "A collection of notes and snippets",
|
descript: "A collection of notes and snippets",
|
||||||
|
base: "/",
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{ icon: "github", link: "https://gitlab.com/djdietrick/docs" },
|
{ icon: "github", link: "https://gitlab.com/djdietrick/docs" },
|
||||||
|
|||||||
Reference in New Issue
Block a user