Merge pull request #682 from aluzzardi/docs-deploy

docs: update deployment
This commit is contained in:
Andrea Luzzardi 2021-06-18 17:04:49 +02:00 committed by GitHub
commit 1001f678a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -14,6 +14,13 @@ docs: yarn.#Package & {
source: repository source: repository
cwd: "website/" cwd: "website/"
buildDir: "website/build" buildDir: "website/build"
env: {
OAUTH_ENABLE: "true"
REACT_APP_OAUTH_SCOPE: "read:user"
REACT_APP_GITHUB_AUTHORIZE_URI: "https://github.com/login/oauth/authorize?client_id=${REACT_APP_CLIENT_ID}&scope=${REACT_APP_OAUTH_SCOPE}&allow_signup=false"
REACT_APP_DAGGER_SITE_URI: "https://dagger.io"
REACT_APP_API_PROXY_ENABLE: "true"
}
} }
// Deploy the docs website // Deploy the docs website

View File

@ -1,3 +1,5 @@
plan:
module: .dagger/env/docs/plan
name: docs name: docs
inputs: inputs:
docs.env.REACT_APP_CLIENT_ID: docs.env.REACT_APP_CLIENT_ID:
@ -30,8 +32,8 @@ sops:
ejRKQXNFZzBTbUxpc05acnkxQ2U2UkEKX1byNj64xOiRGAJ9lwh55d/mlasI3H6H ejRKQXNFZzBTbUxpc05acnkxQ2U2UkEKX1byNj64xOiRGAJ9lwh55d/mlasI3H6H
b+o3HbXSbV0G0UwQxEOisntR6o27ry/l12ai/sOQ4f9MXm6FRw2XTg== b+o3HbXSbV0G0UwQxEOisntR6o27ry/l12ai/sOQ4f9MXm6FRw2XTg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2021-06-15T07:57:28Z" lastmodified: "2021-06-18T14:46:35Z"
mac: ENC[AES256_GCM,data:PPeh8uZ4i8kRqgoDMLBlHMy3jFs0jQxJKdkeA3LTqbBKZ9EEEt9K4ASmZVbTUv5iumcoxaXc2u6ty0gDPaLjqnYPLMOzR962+5ipp96l1fzA7vvNpdNlUPweTo6WgQUBf/J4eOPBlm3O2pPi7Os+IlvnvM92ZL6Y9K3oOZqlnwU=,iv:Mz8jz3lBOEVqlqKEaqa5ujecr4B/IIaeW34Kx3cEwwE=,tag:feixK5kYE61WeEzJcXjRoA==,type:str] mac: ENC[AES256_GCM,data:RX4rZSP2sMqSGfbSkpK1rAqLcpYHv99jUvhGpQvM9Sjxki4LskxQP51BuZj7eVD0u0uqBMObatyZvofTybld6tlrgQeddIS4SINRJNsC+P7dzaiOEePZX/oCCMIQCnO8+OLO7z6DNdy1IMxhuCZWeGHDJt1ritLds3ACAjtFrGo=,iv:AI8tdLTFnFV919ypY0RKVaDNfwEN6b5hZuH4DvlhdAk=,tag:izIPuozRiYpQ50hi4yLyCw==,type:str]
pgp: [] pgp: []
encrypted_suffix: secret encrypted_suffix: secret
version: 3.7.1 version: 3.7.1

View File

@ -1,7 +1,7 @@
[build] [build]
base = "website/" base = "website/"
publish = "build/" publish = "build/"
command = "yarn build:withoutAuth" command = "yarn build"
[context.production] [context.production]
# Do not build the site if there's no site-related changes since the last # Do not build the site if there's no site-related changes since the last
@ -16,6 +16,7 @@
# Do not build the site if there's no site-related changes since the last # Do not build the site if there's no site-related changes since the last
# deploy. # deploy.
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/ ../netlify.toml" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/ ../netlify.toml"
command = "yarn build:withoutAuth"
[[redirects]] [[redirects]]
from = "/github-proxy/*" from = "/github-proxy/*"