diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0c2075542bbd104d7756580c0095208eb1670f2..1777bd573c9b668b62e4007bab1da09ac1f48b60 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,9 +8,9 @@ deploy_preview: - develop script: - npm install --global vercel - - vercel pull --yes --environment=preview --token="${VERCEL_TOKEN}" -S flear - - vercel build --token="${VERCEL_TOKEN}" -S flear - - vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S flear + - vercel pull --yes --environment=preview --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel build --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" deploy_development: stage: deploy @@ -18,9 +18,9 @@ deploy_development: - develop script: - npm install --global vercel - - vercel pull --yes --environment=development --token="${VERCEL_TOKEN}" -S flear - - vercel build --token="${VERCEL_TOKEN}" -S flear - - vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S flear + - vercel pull --yes --environment=development --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel build --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" deploy_production: stage: deploy @@ -28,6 +28,6 @@ deploy_production: - master script: - npm install --global vercel - - vercel pull --yes --environment=production --token="${VERCEL_TOKEN}" -S flear - - vercel build --prod --token="${VERCEL_TOKEN}" -S flear - - vercel deploy --prebuilt --prod --token="${VERCEL_TOKEN}" -S flear + - vercel pull --yes --environment=production --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel build --prod --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" + - vercel deploy --prebuilt --prod --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}" diff --git a/README.md b/README.md index 93fcfac231079594a9baf486f8a39019ff6ec2e3..6515c098ef05e2911fce2cbcddf646b4f5fa7126 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ npm install ts-node typescript '@types/node' ./node_modules/.bin/ts-node --esm generateKeys.mts ``` - ## Setup firebase Setup the things @@ -23,3 +22,12 @@ curl -G -X POST --data-urlencode token="<token>" https://flear.org/send-note # License This project (excluding post content itself) is released under the Apache License v2 + +# Notes to reconcile later + +* Set configuration in /hugo.toml (defaults are in /config/* dont touch) +* Set Gitlab CI ENV variables: +** VERCEL_ORG_ID +** VERCEL_PROJECT_ID +** VERCEL_TOKEN (mask this and make it availible to only protected) +** VERCEL_SCOPE (set to vercel team id, find with `vercel team ls` after creating)