/gha-docker

GitHub Actions for working with Docker

European Union Public License 1.2EUPL-1.2


entur/gha-docker

Entur/Docker/CI

GitHub Actions for working with Docker

Golden Path

  • ./Dockerfile at the root of your repository
  • No ignores for hadolint
  • Image name is equal to repository name
  • Docker build needs no artifacts (it builds its own)

Example

Let's look at an example, assume our repo is called amazing-app:

λ amazing-app ❯ tree
.
├── README.md
├── Dockerfile
└── .github
    └── workflows
        └── ci.yml
# ci.yml
name: CI

on:
  pull_request:

jobs:
  docker-lint:
    uses: entur/gha-docker/.github/workflows/lint.yml@v1

  docker-build:
    uses: entur/gha-docker/.github/workflows/build.yml@v1

  docker-push:
    uses: entur/gha-docker/.github/workflows/push.yml@v1