You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**IMPORTANT:** Before you deploy a new version of any project make sure to determine which version of the project is currently deployed. This way you can quickly revert to the last stable release if something goes wrong after pushing a new version.
**IMPORTANT:** Before you deploy a new version of any project make sure to determine which version of the project is currently deployed. This way you can quickly revert to the last stable release if something goes wrong after pushing a new version.
32
+
To determine the latest deploy tag for a project please check the project's repository on
33
+
github and look for the latest release tag (should be in the form `vX.Y.Z`). Once you've located the tag,
34
+
copy it down somewhere that is easily and quickly accessible (you may need to use it quickly if something goes wrong).
33
35
34
-
Currently the easiest way to determine the current deploy version is to check the latest tag in the repository you are pushing. Note: If you just tagged a new release this would be the second latest tag.
36
+
### Step 2: Deploy the Project via `ansible-playbook`
35
37
36
-
Once you've found the correct tag, copy it down somewhere that is easily and quickly accessible, then continue your quest of deployment...
38
+
-**WARNING:** If you were unable to determine the last deploy tag for a project and cannot revert **STOP**.
39
+
Ask someone on the team for help before continuing.
40
+
-**IMPORTANT:** All commands should be run from the `devops-script/ansible` directory.
37
41
38
-
### Step 2: Deploy the Project via Ansible
39
-
**WARNING:** If you were unable to determine the last deploy tag for a project and cannot revert STOP HERE. Ask someone on the team for help before continuing.
42
+
#### Latest Tag
43
+
Build and deploy a service to the latest tag of its repository. This will build
44
+
the docker image needed to run the container on our infrastructure.
40
45
41
-
From the devops-script/ansible directory here's how to deploy:
If, for some reason, the new deploy is not operating as expected you can quickly revert by referencing the tag you collected in Step 1. Simply run the appropriate deploy command in the previous section with the last release tag and the new deploy will be reverted.
71
-
72
-
## Deploy Songs
73
-
74
-
It is the custom at Runnable to play a song to the entire team when deploying. For each of the repositories here are the respective songs:
70
+
##### Arguments
71
+
-`[inventory_dir]` - The environment inventory files (servers and variables).
72
+
-`[service-playbook]` - The playbook for the service you wish to deploy.
73
+
-`[branch-or-tag]` - The branch or tag you wish to deploy, ex:
*NEW JUAREZ*[stack: The Cleveland Orchestra (George Szell conducting) Ludwig von Beethoven Symphony No. 9 "Chorale (Ode To Joy)" Opus 125 IV. Presto; Allegro molto assai (Alla marcia); Andante maestroso; Allegro energico, sempre ben marcato.] (https://www.youtube.com/watch?v=4g5770gaais)
77
78
78
-
[api: Push it - Rick Ross](https://www.youtube.com/watch?v=qk2jeE1LOn8)
79
+
#### Redeploy Tag or Branch (No Build)
80
+
Redeploy the given tag or branch without building the docker image. This is useful for when a redeploy
81
+
is required, but it is of an already built image (e.g. when a service runs out of memory).
79
82
80
-
[runnable-angular: Push it to the limit - Scarface](https://www.youtube.com/watch?v=9D-QD_HIfjA)
| swarm-deamon |[Pink Floyd - Another Brick In The Wall](https://www.youtube.com/watch?v=5IpYOF4Hi6Q)|
139
+
| swarm-manager |[Eric Prydz VS Pink Floyd - 'Proper Education'](https://www.youtube.com/watch?v=IttkDYE33aU)|
140
+
| vault / vault-values |[Seal - Kiss From A Rose](https://www.youtube.com/watch?v=zP3so2hY4CM)|
141
+
| Full Stack Deploy (`all.yml`) |[The Cleveland Orchestra (George Szell conducting) Ludwig von Beethoven Symphony No. 9 "Chorale (Ode To Joy)" Opus 125 IV.] (https://www.youtube.com/watch?v=4g5770gaais)|
0 commit comments