Builds a Docker image
Find a file
2026-05-08 14:11:09 +02:00
src Skip empty tags 2026-05-08 14:11:09 +02:00
action.yaml Update documentation 2026-04-10 16:02:25 +02:00
LICENSE Create LICENSE 2026-04-08 22:05:39 +00:00
README.md Update documentation 2026-04-10 16:02:25 +02:00

Docker Build Action

Builds a Docker image

Usage

- uses: https://forge.turtle-host.de/actions/docker-build@v1
  with:

    # Path to the Dockerfile.
    # Example:  prod.Dockerfile
    # Default:  Dockerfile
    dockerfile: ''

    # Context of the Docker build.
    # Example:  app/src
    # Default:  .
    context: ''

    # OCI registry that the resulting image belongs to. Defaults to the Forge registry.
    # Note that images are not automatically pushed. This is just used to create references.
    # Any protocols and sub-paths are automatically stripped.
    # Example:  forge.turtle-host.de
    # Default:  ${{ forgejo.server_url }}
    registry: ''

    # OCI repository, part of the image reference. Defaults to Forge repository name with owner.
    # Example:  actions/docker-build
    # Default:  ${{ forgejo.repository }}
    repository: ''

    # Tag(s) to apply to the final image. Separate by newline.
    # Default:  "latest"
    tags: |
      tag1
      tag2