Build, End to End Test, and Push pipeline for the atsea-web image

Now, it is time to build off of the last CI pipeline and take it to the next level. For our web application, we are raising the bar. We want to: 1) build the image, 2) run a test application stack using the new image, and 3) connect an e2e test driver to the web app stack and validate the application. If the test succeeds, then we will push the image to DTR. Otherwise, we will fail the build. Now that is cool!

Let's start by looking at the following pipeline file, where everything looks the same as before, until we get to the deploy-test-on-swarm job. The first line of the deploy-test-on-swarm script has the docker stack deploy command we used for our manual deploy earlier ...

Get Mastering Docker Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.