Skip to main content

Overview

fjall build builds Docker images and pushes them to Amazon ECR. Use it in CI/CD workflows that separate the build and deploy steps.

Prerequisites

Usage

Arguments

Options

Basic Usage

Build all services in an application:
Build a specific service:

CI/CD Workflow

The build command suits CI/CD pipelines that:
  1. Build and push images.
  2. Run tests against the built image.
  3. Deploy with the pre-built image.

Example: GitHub Actions

--image-tag deploys the exact image the build step pushed, without rebuilding. It applies one tag family across the app’s services, so it suits apps whose services build from a single build group — the build output offers the --image-tag next step only when that holds. Otherwise deploy normally (fjall deploy api).

Example: Buildkite

Output

Standard Output

With —output-image-url

When you pass --output-image-url, the command prints machine-readable values:
IMAGE_URL contains the last built image; ALL_IMAGE_URLS (a comma-separated list) is added when multiple services build. One IMAGE service=<name> tag=<tag> digest=<digest> uri=<uri> line is printed per built artefact — parse these when you need per-service tags.

Docker Build Targets

If your Dockerfile uses multi-stage builds with named targets:
Build a specific target:

Troubleshooting

ECR Repository Not Found

Solution: deploy the infrastructure first.

Docker Build Failed

Cause: Dockerfile error or missing dependencies. Solution: test your Docker build locally first.

Authentication Failed

Cause: invalid or expired AWS credentials. Solution: re-authenticate.

Next Steps

Deploy an Application

Deploy your built image to AWS

fjall deploy

Full reference for the deploy command