GitHub Actions for working with Docker
./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)
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