Compare commits

..

4 Commits

Author SHA1 Message Date
91d726c7f9 Added latest tag 2024-11-17 17:43:53 +01:00
165fdcae4d Fixed dead link 2024-11-17 17:33:04 +01:00
73a6386b88 Updated variables 2024-11-17 17:21:39 +01:00
c783f3bfad Added go section, changed .gitlab-ci.yml to push to AWS ECR 2024-11-17 17:18:36 +01:00
5 changed files with 44 additions and 15 deletions

View File

@@ -1,19 +1,41 @@
variables: variables:
SERVICE_NAME: "docs" REPOSITORY_NAME: djdietrick/docs
DOCKER_HOST: tcp://docker:2375
stages: stages:
- build
- deploy - deploy
deploy: build:
stage: deploy stage: build
only: image:
- master # This pipeline stage will run on this branch alone 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
image: google/cloud-sdk:latest # We'll use Google Cloud SDK for Cloud Run related commands # variables:
script: # SERVICE_NAME: "docs"
- 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 # stages:
- gcloud auth configure-docker # Configure docker environment # - deploy
- 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 # deploy:
- 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 # 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
docs/go/index.md Normal file
View File

@@ -0,0 +1 @@
# Go

6
docs/go/sidebar.json Normal file
View File

@@ -0,0 +1,6 @@
[
{
"text": "Go Basics",
"items": [{ "text": "Introduction", "link": "/go/" }]
}
]

View File

@@ -4,5 +4,4 @@ Terraform is a software that allows you to define your infrastructure as code. Y
## Installation ## Installation
Installation can be done from the [terraform website](terraform.io), where you can download the binary and add it to your path. If on mac, this can be done with brew. Installation can be done from the [terraform website](http://www.terraform.io), where you can download the binary and add it to your path. If on mac, this can be done with brew.

1
package-lock.json generated
View File

@@ -5,6 +5,7 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "docs",
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {