Simple build and push pipeline for atsea-db image

First, we will look at the contents of our atsea-db service repository. For the most part, the repository contains the contents from the database sub directory of the old atsea-app repository. There is, of course, one critical new addition—the .gitlab-ci.yml file:

atsea-db├── docker-entrypoint-initdb.d│ └── init-db.sql├── Dockerfile├── pg_hba.conf├── .gitlab-ci.yml└── postgresql.conf

There is a special convention within the GitLab source code control system related to CI pipeline file. When code is checked into the repository with a .gitlab-ci.yml file in the root of the repository, a pipeline is created based on the contents of this file.

Of course, there is much to say about CI pipeline ...

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.