To ensure that WFs are working properly, add these GH Secrets right after project creation:
- Secrets for
VAULT_TOKEN
andVAULT_ENDPOINT
(copygithub-token
andurl
from https://vault.bndigital.dev) - Secret for
GH_TOKEN
(copygithub-token
from https://vault.bndigital.dev) - Secret for
HARBOR_TOKEN
(copyapi-token
from https://vault.bndigital.dev)
After setting up all(!) required secrets, perform these actions:
- In the
Actions
tab, find WF namedBootstrap
in the left pane - Click on the button
Run workflow
in the top-right corner and in pop-up window click green buttonRun workflow
- After that open code editor of your choice and replace all occurrences of
"project-templates"
in allpackage.json
files with the name of your project, runyarn install
from project root, then commit and push these changes - Wait for the
Staging Deployment
workflow to run and check your staging atREPO_NAME.bndigital.dev
- Go to
REPO_NAME.bndigital.dev/admin
and set up Strapi Admin with these credentials - Click on the
Settings
option in the menu on the left and on the page that appeared clickTransfer tokens
and then+ Create new Transfer Token
button in the top-right corner - In the appeared window enter these values:
- For
Name
any name you like (e.g staging_token) - For
Token duration
select30 days
- For
Description
don't put anything - For
Token type
selectFull access
- Then copy appeared token, press
Save
and save it as a GH secret namedSTRAPI_STAGING_TRANSFER_TOKEN
- Finally, run workflow named
Transfer
the same way you ranBootstrap
- Say a few kind words to yourself after completing all steps 🙃