Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/telkomdev/gitops-dibs

GitOps based Docker image build system
https://github.com/telkomdev/gitops-dibs

actions docker docker-image dockerfile workflow

Last synced: about 3 hours ago
JSON representation

GitOps based Docker image build system

Awesome Lists containing this project

README

        

# GitOps Docker image build system (DIBS)
[![GitHub license](https://img.shields.io/github/license/telkomdev/gitops-dibs.svg)](https://github.com/telkomdev/gitops-dibs/blob/master/LICENSE)
[![made-with-bash](https://img.shields.io/badge/Made%20with-Bash-1f425f.svg)](https://www.gnu.org/software/bash/)

The purpose of this build system is to simplify the process of building a docker image and make it easier for everyone to contribute

## Project structure
```
.github/
workflows/
.yaml # This will be your workflow file
/
Dockerfile-_ # This Docker build file will be used by workflow, the configuration is based on workflow input
```

## How to build
- Create action secret `DOCKER_USERNAME`, `DOCKER_PASSWORD` and fill out the value according to your Docker Hub account
- Open GitHub Actions
- Choose some `Publish` workflow
- Fill out the publish configuration that usually contains `image name`, `image version`, `image variant`, for example:
```env
Image name : my-engine
Image version : latest
Image variant : alpine
```
- Run workflow
- Built image will be automatically available in your Docker Hub repository
```env
Built image on Docker Hub : /my-engine:latest-alpine
```