To ensure that WFs are working properly, add these GH Secrets right after project creation:
- Secrets for
VAULT_TOKENandVAULT_ENDPOINT(copygithub-tokenandurlfrom https://vault.bndigital.dev) - Secret for
GH_TOKEN(copygithub-tokenfrom https://vault.bndigital.dev) - Secret for
HARBOR_TOKEN(copyapi-tokenfrom https://vault.bndigital.dev)
After setting up all(!) required secrets, perform these actions:
- In the
Actionstab, find WF namedBootstrapin the left pane - Click on the button
Run workflowin 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.jsonfiles with the name of your project, runyarn installfrom project root, then commit and push these changes - Wait for the
Staging Deploymentworkflow to run and check your staging atREPO_NAME.bndigital.dev - Go to
REPO_NAME.bndigital.dev/adminand set up Strapi Admin with these credentials - Click on the
Settingsoption in the menu on the left and on the page that appeared clickTransfer tokensand then+ Create new Transfer Tokenbutton in the top-right corner - In the appeared window enter these values:
- For
Nameany name you like (e.g staging_token) - For
Token durationselect30 days - For
Descriptiondon't put anything - For
Token typeselectFull access - Then copy appeared token, press
Saveand save it as a GH secret namedSTRAPI_STAGING_TRANSFER_TOKEN - Finally, run workflow named
Transferthe same way you ranBootstrap - Say a few kind words to yourself after completing all steps 🙃