Files
docker-docs/content/build/ci/github-actions/export-docker.md
David Karlsson 4b089c535f build(ci): remove checkout action for build-push-action
build-push-action uses Git context by default. No need for checkout
action unless you tamper with repo files before build.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-18 16:19:19 +02:00

743 B

title, description, keywords
title description keywords
Export to Docker with GitHub Actions Load the build results to the image store with GitHub Actions ci, github actions, gha, buildkit, buildx, docker, export, load

You may want your build result to be available in the Docker client through docker images to be able to use it in another step of your workflow:

name: ci

on:
  push:

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      
      - name: Build
        uses: docker/build-push-action@v6
        with:
          load: true
          tags: myimage:latest
      
      - name: Inspect
        run: |
          docker image inspect myimage:latest