DockerCon Session: Building a Docker Image Packaging Pipeline Using GitHub Actions

Опубликовано: 16 Октябрь 2024
на канале: Snyk
2,988
40

Speaker: Gareth Rushgrove

Sometimes life is simple; you have a single source code repository, a single Dockerfile and you want to build and publish a single Docker image to a single container registry. In other cases you’re packaging third party content, building lots of variant images and publishing multiple tags to multiple registries at once. Based on real-world examples, in this talk we will:
- Show the hello world example of building a Docker image using GitHub Actions, using the new build-push-action from Docker
- Discuss techniques for building reusable Dockerfiles
- Touch on the difference between packaging from source and packaging from artefacts
- Build up to more advanced use cases, demonstrating the powerful combination of build arguments, multi-stage Dockerfiles and BuildKit

We’ll use GitHub Actions for the demos as it’s easily accessible, and makes bringing automation closer to source code easier than ever. But the examples will all work on other platforms too.

Learn more about Snyk capabilities here http://bit.ly/snyk-io