Microservices are deployed independently. In the dev environment, all the apps are built and deployed on every commit (if there were changes in microservice code).
In stage/prod environments, we use the same docker image as for dev (in GitHub Actions build pipeline is skipped).
In order to deploy microservice to the stage environment, you need to:
look for a specific commit on which the docker image for the application was built (Be aware, that only tags in branch main will trigger deploy!):
open SaFiMono → Actions
select
app-microserviceName
(e.g.:app-account-manager
)look for specific commit, e.g.:
tag it with
stage-microserviceName-version
(e.g.:stage-account-manager-0.0.1
):git checkout ffe38b6 git tag -a stage-account-manager-0.0.1 -m "Stage deploy test" git push origin main --tags
Note: To see what tags numbers you already pushed use
git tag | grep account
Reference:
check the deployment status:
open SaFiMono → Actions
select
app-microserviceName-stage
(e.g.:app-account-manager-stage
)the first workflow run is the latest deployment
Attachments:
Снимок экрана 2022-08-02 в 15.48.26.png (image/png)
image-20220929-082448.png (image/png)