shared-actions/docker-build-push
2026-04-24 15:57:40 +02:00
..
action.yml refactor: move action to repo root 2026-04-24 15:57:40 +02:00
README.md refactor: move action to repo root 2026-04-24 15:57:40 +02:00

docker-build-push

Build Docker image and push to JFrog with semver tags.

Inputs

Input Required Default Description
image-name Yes Image name (e.g., default-docker/db-devcontainer-base)
version-tag Yes Full semver tag (e.g., 1.2.3)
jfrog-token Yes JFrog registry password/token
registry No schmalz.jfrog.io Docker registry
dockerfile No Dockerfile Path to Dockerfile
context No . Docker build context
jfrog-user No jfrog-cicd-user JFrog registry user

Usage

- uses: schmalz/shared-actions/.github/actions/docker-build-push@v1
  with:
    image-name: default-docker/my-service
    version-tag: 1.2.3
    jfrog-token: ${{ secrets.JFROG_TOKEN }}

Notes

  • Pushes three tags per build: full (1.2.3), minor (1.2), and major (1).
  • Consumers using the major or minor tag always get the latest patch release.