Skip to content

Configure a Docker Automated build #644

@ferrarimarco

Description

@ferrarimarco

Hi all.

Let's track the requirements of this feature (now scattered across various PRs and issues).

Background

  1. I opened Dockerfile and Docker automated builds #591 (Dockerfile and Docker automated builds)
  2. Move repo to organisation #595 (Move repo to organization) was created but took a bit to complete
  3. In the meantime Dockerfile and Docker automated builds #591 was closed by Remove docker bits #634 (Remove Docker bits) because I (temporarily) moved the GHCG Docker image under the ferrarimarco Docker Hub namespace

Current Implementation

ferrarimarco/github-changelog-generator is backed by the corresponding GitHub repository.

Each commit and Git tag pushed to that repository triggers a build on Docker hub and, if successful, in a new Docker image.

I am currently handling GHCG updates with Dependabot. This service automatically creates PRs to update dependencies by looking at your Gemfile.

This is the reason why I'm using a separate Gemfile even if we could get rid of it and run commands directly in the Dockerfile.

Ideas for a more refined implementation

Instead of just installing the updated Gem when available we could provide two kinds of Docker images:

  1. One tagged with latest: by convention it could point to the latest (successful) build of the master branch. This image is overridden on each commit on master (if the build is ok)
  2. One tag for each GHCG release tagged using the same Git tag (i.e. when you release 1.15.0 there will be a corresponding 1.15.0 docker image). This is needed to make production deployment repeatable

Thoughts?

/cc @olleolleolle @skywinder

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy