Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Deployment PR (use this PR to sample ansible scripts) #10

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

patricksimonian
Copy link
Owner

@patricksimonian patricksimonian commented Jul 13, 2020

The pr is kept open to sample the anisble scripts

follow pre requisites as described in the ansible/README.md

  1. build strapi ansible-playbook build-strapi.yaml -e PR=10
  2. deploy mongo ansible-playbook deploy-mongo.yaml -e PR=10

wait for mongo to be ready by viewing logs oc logs pod/mongo-ha-pr-10-0 and look for readiness of replicas
you will be looking for messages like Member mongo-ha-pr-10-2.mongo-ha-pr-10-internal.<namespace>.svc.cluster.local:27017 is now in state SECONDARY and
Member mongo-ha-pr-10-1.mongo-ha-pr-10-internal.va3azs-patricksimonian-ocp201-tst-dev.svc.cluster.local:27017 is now in state SECONDARY
when ready

  1. deploy strapi ansible-playbook deploy-strapi.yaml -e PR=10

when strapi is ready

  1. backup restore check ansible-playbook backup-restore-mongo.yaml -e PR=10

if there is no thrown errors the backup and restore was succesful

Fixes #8

@patricksimonian
Copy link
Owner Author

FOOO

@patricksimonian
Copy link
Owner Author

yass

@patricksimonian
Copy link
Owner Author

asasdfasdf

@patricksimonian
Copy link
Owner Author

dfdf

@patricksimonian
Copy link
Owner Author

asdfasdf

@patricksimonian
Copy link
Owner Author

sdfsdf

@patricksimonian
Copy link
Owner Author

df

@patricksimonian
Copy link
Owner Author

sdfasdf

@patricksimonian
Copy link
Owner Author

dfdfdsfasdf

@patricksimonian
Copy link
Owner Author

aasdfasdf

@patricksimonian
Copy link
Owner Author

sadfasdf

@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

5 similar comments
@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

@digital-gov-bc-ca-cicd-dev
Copy link

Thanks for opening this issue!

@patricksimonian
Copy link
Owner Author

boop

@patricksimonian
Copy link
Owner Author

sadfasdf

@patricksimonian
Copy link
Owner Author

Jas is awesome

@patricksimonian
Copy link
Owner Author

Jas is Aweomse

@patricksimonian
Copy link
Owner Author

foo

@patricksimonian
Copy link
Owner Author

blarb

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to dev

@patricksimonian
Copy link
Owner Author

@deploy-tron help

1 similar comment
@patricksimonian
Copy link
Owner Author

@deploy-tron help

@digital-gov-bc-ca-cicd-dev
Copy link

Available Commands

all commands are case sensitive and should be entered one comment at a time. Multiple commands in a single comment will not be processed

command description example usage
help posts this message @deploy-tron help
deploy Creates a deployment for a microservice to a particular environment.
This is based on several factors that are configurable on my runtime.
@deploy-tron deploy <microservice> to <environment>
eg
@deploy-tron deploy react to prod

@patricksimonian
Copy link
Owner Author

@deploy-tron help

@patricksimonian
Copy link
Owner Author

@deploy-mon help

@digital-gov-bc-ca-cicd-dev
Copy link

Available Commands

all commands are case sensitive and should be entered one comment at a time. Multiple commands in a single comment will not be processed

command description example usage
help posts this message @deploy-mon help
deploy Creates a deployment for a microservice to a particular environment.
This is based on several factors that are configurable on my runtime.
@deploy-mon deploy <microservice> to <environment>
eg
@deploy-mon deploy react to prod

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

5 similar comments
@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@digital-gov-bc-ca-cicd-dev
Copy link

Cannot Deploy to

There is/are other pr(s) that are currently deploying to this environment

pr status branch
#pr no status found patricksimonian-patch-1

@patricksimonian
Copy link
Owner Author

@deploy-mon deploy react to dev

@digital-gov-bc-ca-cicd-dev
Copy link

Cannot Deploy to

There is/are other pr(s) that are currently deploying to this environment

pr status branch
#pr no status found patricksimonian-patch-1

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to prod

@digital-gov-bc-ca-cicd-dev
Copy link

Uhoh :( I can't compute

This deployment is dependant on other environments being deployed first.

You will not be able to deploy to ____ until you have deployed first to:

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to dev

@digital-gov-bc-ca-cicd-dev digital-gov-bc-ca-cicd-dev bot requested a deployment to development August 21, 2020 19:33 Abandoned
@digital-gov-bc-ca-cicd-dev
Copy link

Deployment:260914518 to development created :)

The deployment has the following payload which you can integrate with your ci/cd service.

{&quot;microservice&quot;:&quot;react&quot;,&quot;pr&quot;:10,&quot;user&quot;:&quot;patricksimonian&quot;}

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to prod

@digital-gov-bc-ca-cicd-dev
Copy link

Uhoh :( I can't compute

This deployment is dependant on other environments being deployed first.

You will not be able to deploy to ____ until you have deployed first to:

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to prod

@digital-gov-bc-ca-cicd-dev
Copy link

Uhoh :( I can't compute

This deployment is dependant on other environments being deployed first.

You will not be able to deploy to production until you have deployed first to:

  • development
  • staging

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to dev

@digital-gov-bc-ca-cicd-dev digital-gov-bc-ca-cicd-dev bot requested a deployment to development August 21, 2020 19:37 Abandoned
@digital-gov-bc-ca-cicd-dev
Copy link

Deployment 260915462 to development created :)

The deployment has the following payload which you can integrate with your ci/cd service.

{"microservice":"react","pr":10,"user":"patricksimonian"}

@patricksimonian
Copy link
Owner Author

@deploy-tron deploy react to prod

@digital-gov-bc-ca-cicd-dev
Copy link

Uhoh :( I can't compute

This deployment is dependant on other environments being deployed first.

You will not be able to deploy to production until you have deployed first to:

  • development
  • staging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github API returns 422 status when checking for buidl commits
1 participant