This repository is a sample to use devcontainer / codespaces / github actions for developping SORACOM Orbit.
The following files are as distributed by SORACOM. Original files are distributed in https://users.soracom.io/ja-jp/docs/orbit/setup/
You can open forked repository not only in devcontainer at your local environment but also codespaces.
Add secrets below to github actions secrets
from https://github.com/{github-user-name}/{repo-name}/settings/secrets/actions
- AUTH_KEY: SORACOM's auth key
- AUTH_KEY_ID: SORACOM's auth key id
- SORACOM_GROUP_ID_STG : SORACOM's staging group id to deploy
- SORACOM_GROUP_ID_PROD: SORACOM's production group id to deploy
Create two SIM groups in SORACOM platform, one for staging and the other for production.
So,this CI/CD workflow works as below.
- If you push changes to
master
orstaging
branch, build and upload a soralet to SORACOM Orbit - A soralet built from
staging
branch will be deployed tostaging
group, and a soralet built frommaster
branch will be deployed toproduction
group.