Skip to content

GitHub Actions for working with Docker

License

Notifications You must be signed in to change notification settings

entur/gha-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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