Skip to content

Multiline tags/labels with version 1.0.1 are split into 1, .0, .1 in generated docker buildx command #1462

@DmitriyProkopyev

Description

@DmitriyProkopyev

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

Multiline tag expression aimed to create two tags (name:1.0.1 and name:latest) seems to be split not only by next line symbol but also by dots, creating invalid buildx commands and therefore failing the build. Verified only with multiline syntax.

Expected behaviour

The final docker buildx build command should contain:

--tag user/devops-info-service:1.0.1
--tag user/devops-info-service:latest
--label DEBUG_VERSION=1.0.1
--label DEBUG_MAJOR=1
--label DEBUG_MINOR=0
--label DEBUG_PATCH=1

Actual behaviour

In the job log I consistently see:

/usr/bin/docker buildx build
--build-arg MAJOR_VERSION=1
--build-arg MINOR_VERSION=0
--build-arg PATCH_VERSION=1
--iidfile ...
--label DEBUG_VERSION=1
--label .0
--label .1
--label DEBUG_MAJOR=1
--label DEBUG_MINOR=0
--label DEBUG_PATCH=1
--tag controlw/devops-info-service:1
--tag .0
--tag .1
--tag controlw/devops-info-service:latest
--push .

This causes Buildx to fail with:

ERROR: failed to build: invalid tag ".0": invalid reference format

So a single logical version 1.0.1 (in both tags and labels) seems to be split into three elements: 1, .0, .1.

Repository URL

https://github.com/DmitriyProkopyev/DevOps-Core-Course

Workflow run URL

https://github.com/DmitriyProkopyev/DevOps-Core-Course/actions/runs/22320604083/job/64577594648

YAML workflow

name: lab-testing
on:
  push:
    branches: [ master, lab03 ]
  pull_request:
    branches: [ master ]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Get code
        uses: actions/checkout@v4

      - name: Setup python
        uses: actions/setup-python@v4
        with:
          python-version: '3.12.10'

      - name: Install development dependencies
        run: |
          python -m venv venv
          pip install -r app_python/requirements-dev.txt
      - name: Run linter
        run: ruff check app_python/

      - name: Run unit tests
        run: pytest app_python/tests/

  release:
    needs: test
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request' && github.base_ref == 'master'

    steps:
      - name: Get code
        uses: actions/checkout@v4

      - name: Read version
        id: version
        run: |
          set -e
          MAJOR_VERSION=$(grep '^MAJOR_VERSION=' app_python/version.env | cut -d '=' -f2-)
          MINOR_VERSION=$(grep '^MINOR_VERSION=' app_python/version.env | cut -d '=' -f2-)
          PATCH_VERSION=$(grep '^PATCH_VERSION=' app_python/version.env | cut -d '=' -f2-)
          VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}"
          {
            echo "MAJOR_VERSION=$MAJOR_VERSION"
            echo "MINOR_VERSION=$MINOR_VERSION"
            echo "PATCH_VERSION=$PATCH_VERSION"
            echo "VERSION=$VERSION"
          } >> "$GITHUB_OUTPUT"
      - name: Login to DockerHub
        uses: docker/login-action@v3
        with:
          username: ${{ vars.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and push image
        uses: docker/build-push-action@v6
        with:
          context: .
          push: true
          build-args: |
            MAJOR_VERSION=${{ steps.version.outputs.MAJOR_VERSION }}
            MINOR_VERSION=${{ steps.version.outputs.MINOR_VERSION }}
            PATCH_VERSION=${{ steps.version.outputs.PATCH_VERSION }}
          tags: |
            controlw/devops-info-service:${{ steps.version.outputs.VERSION }}
            controlw/devops-info-service:latest
          labels: |
            DEBUG_VERSION=${{ steps.version.outputs.VERSION }}
            DEBUG_MAJOR=${{ steps.version.outputs.MAJOR_VERSION }}
            DEBUG_MINOR=${{ steps.version.outputs.MINOR_VERSION }}
            DEBUG_PATCH=${{ steps.version.outputs.PATCH_VERSION }}

Workflow logs

2026-02-23T19:03:20.7487233Z Current runner version: '2.331.0'
2026-02-23T19:03:20.7519962Z ##[group]Runner Image Provisioner
2026-02-23T19:03:20.7521395Z Hosted Compute Agent
2026-02-23T19:03:20.7522251Z Version: 20260123.484
2026-02-23T19:03:20.7523273Z Commit: 6bd6555ca37d84114959e1c76d2c01448ff61c5d
2026-02-23T19:03:20.7524382Z Build Date: 2026-01-23T19:41:17Z
2026-02-23T19:03:20.7525422Z Worker ID: {b213b0cc-8e08-415b-9fa1-e58170e8adfa}
2026-02-23T19:03:20.7526646Z Azure Region: eastus
2026-02-23T19:03:20.7527413Z ##[endgroup]
2026-02-23T19:03:20.7529913Z ##[group]Operating System
2026-02-23T19:03:20.7530908Z Ubuntu
2026-02-23T19:03:20.7531600Z 24.04.3
2026-02-23T19:03:20.7532339Z LTS
2026-02-23T19:03:20.7533262Z ##[endgroup]
2026-02-23T19:03:20.7533993Z ##[group]Runner Image
2026-02-23T19:03:20.7534836Z Image: ubuntu-24.04
2026-02-23T19:03:20.7535760Z Version: 20260201.15.1
2026-02-23T19:03:20.7537667Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20260201.15/images/ubuntu/Ubuntu2404-Readme.md
2026-02-23T19:03:20.7540497Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20260201.15
2026-02-23T19:03:20.7542028Z ##[endgroup]
2026-02-23T19:03:20.7546577Z ##[group]GITHUB_TOKEN Permissions
2026-02-23T19:03:20.7549694Z Actions: write
2026-02-23T19:03:20.7550616Z ArtifactMetadata: write
2026-02-23T19:03:20.7551498Z Attestations: write
2026-02-23T19:03:20.7552350Z Checks: write
2026-02-23T19:03:20.7553231Z Contents: write
2026-02-23T19:03:20.7553975Z Deployments: write
2026-02-23T19:03:20.7554867Z Discussions: write
2026-02-23T19:03:20.7555723Z Issues: write
2026-02-23T19:03:20.7556528Z Metadata: read
2026-02-23T19:03:20.7557286Z Models: read
2026-02-23T19:03:20.7558105Z Packages: write
2026-02-23T19:03:20.7559147Z Pages: write
2026-02-23T19:03:20.7560086Z PullRequests: write
2026-02-23T19:03:20.7561017Z RepositoryProjects: write
2026-02-23T19:03:20.7562001Z SecurityEvents: write
2026-02-23T19:03:20.7562812Z Statuses: write
2026-02-23T19:03:20.7563698Z ##[endgroup]
2026-02-23T19:03:20.7566684Z Secret source: Actions
2026-02-23T19:03:20.7567748Z Prepare workflow directory
2026-02-23T19:03:20.8018522Z Prepare all required actions
2026-02-23T19:03:20.8073296Z Getting action download info
2026-02-23T19:03:21.1734089Z Download action repository 'actions/checkout@v4' (SHA:34e114876b0b11c390a56381ad16ebd13914f8d5)
2026-02-23T19:03:21.5287924Z Download action repository 'docker/login-action@v3' (SHA:c94ce9fb468520275223c153574b00df6fe4bcc9)
2026-02-23T19:03:21.8526095Z Download action repository 'docker/build-push-action@v6' (SHA:10e90e3645eae34f1e60eeb005ba3a3d33f178e8)
2026-02-23T19:03:22.2458938Z Complete job name: release
2026-02-23T19:03:22.3273709Z ##[group]Run actions/checkout@v4
2026-02-23T19:03:22.3274986Z with:
2026-02-23T19:03:22.3275866Z repository: DmitriyProkopyev/DevOps-Core-Course
2026-02-23T19:03:22.3277264Z token: ***
2026-02-23T19:03:22.3277993Z ssh-strict: true
2026-02-23T19:03:22.3279118Z ssh-user: git
2026-02-23T19:03:22.3279951Z persist-credentials: true
2026-02-23T19:03:22.3280885Z clean: true
2026-02-23T19:03:22.3281689Z sparse-checkout-cone-mode: true
2026-02-23T19:03:22.3282651Z fetch-depth: 1
2026-02-23T19:03:22.3283407Z fetch-tags: false
2026-02-23T19:03:22.3284192Z show-progress: true
2026-02-23T19:03:22.3284979Z lfs: false
2026-02-23T19:03:22.3285692Z submodules: false
2026-02-23T19:03:22.3286489Z set-safe-directory: true
2026-02-23T19:03:22.3287658Z ##[endgroup]
2026-02-23T19:03:22.4385348Z Syncing repository: DmitriyProkopyev/DevOps-Core-Course
2026-02-23T19:03:22.4388052Z ##[group]Getting Git version info
2026-02-23T19:03:22.4389935Z Working directory is '/home/runner/work/DevOps-Core-Course/DevOps-Core-Course'
2026-02-23T19:03:22.4392003Z [command]/usr/bin/git version
2026-02-23T19:03:22.5365503Z git version 2.52.0
2026-02-23T19:03:22.5393729Z ##[endgroup]
2026-02-23T19:03:22.5409212Z Temporarily overriding HOME='/home/runner/work/_temp/77e65b03-a3b2-4a7a-b622-6ca96bda721c' before making global git config changes
2026-02-23T19:03:22.5412311Z Adding repository directory to the temporary git global config as a safe directory
2026-02-23T19:03:22.5415198Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/DevOps-Core-Course/DevOps-Core-Course
2026-02-23T19:03:22.5492634Z Deleting the contents of '/home/runner/work/DevOps-Core-Course/DevOps-Core-Course'
2026-02-23T19:03:22.5495670Z ##[group]Initializing the repository
2026-02-23T19:03:22.5500369Z [command]/usr/bin/git init /home/runner/work/DevOps-Core-Course/DevOps-Core-Course
2026-02-23T19:03:22.6034765Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-02-23T19:03:22.6037029Z hint: will change to "main" in Git 3.0. To configure the initial branch name
2026-02-23T19:03:22.6039302Z hint: to use in all of your new repositories, which will suppress this warning,
2026-02-23T19:03:22.6040925Z hint: call:
2026-02-23T19:03:22.6041733Z hint:
2026-02-23T19:03:22.6042746Z hint: git config --global init.defaultBranch
2026-02-23T19:03:22.6044050Z hint:
2026-02-23T19:03:22.6045238Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-02-23T19:03:22.6047260Z hint: 'development'. The just-created branch can be renamed via this command:
2026-02-23T19:03:22.6048870Z hint:
2026-02-23T19:03:22.6049620Z hint: git branch -m
2026-02-23T19:03:22.6050459Z hint:
2026-02-23T19:03:22.6051592Z hint: Disable this message with "git config set advice.defaultBranchName false"
2026-02-23T19:03:22.6090271Z Initialized empty Git repository in /home/runner/work/DevOps-Core-Course/DevOps-Core-Course/.git/
2026-02-23T19:03:22.6105487Z [command]/usr/bin/git remote add origin https://github.com/DmitriyProkopyev/DevOps-Core-Course
2026-02-23T19:03:22.6189716Z ##[endgroup]
2026-02-23T19:03:22.6192149Z ##[group]Disabling automatic garbage collection
2026-02-23T19:03:22.6194414Z [command]/usr/bin/git config --local gc.auto 0
2026-02-23T19:03:22.6225072Z ##[endgroup]
2026-02-23T19:03:22.6227282Z ##[group]Setting up auth
2026-02-23T19:03:22.6233398Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2026-02-23T19:03:22.6266874Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-02-23T19:03:22.7783202Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2026-02-23T19:03:22.7822604Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2026-02-23T19:03:22.8084597Z [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
2026-02-23T19:03:22.8119270Z [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
2026-02-23T19:03:22.8356848Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2026-02-23T19:03:22.8393059Z ##[endgroup]
2026-02-23T19:03:22.8394545Z ##[group]Fetching the repository
2026-02-23T19:03:22.8402217Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +f0f21b308bc789853777b84cf99d3371bbef3c44:refs/remotes/pull/7/merge
2026-02-23T19:03:23.2180521Z From https://github.com/DmitriyProkopyev/DevOps-Core-Course
2026-02-23T19:03:23.2183975Z * [new ref] f0f21b308bc789853777b84cf99d3371bbef3c44 -> pull/7/merge
2026-02-23T19:03:23.2266279Z ##[endgroup]
2026-02-23T19:03:23.2267980Z ##[group]Determining the checkout info
2026-02-23T19:03:23.2269780Z ##[endgroup]
2026-02-23T19:03:23.2273549Z [command]/usr/bin/git sparse-checkout disable
2026-02-23T19:03:23.2362317Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-02-23T19:03:23.2389826Z ##[group]Checking out the ref
2026-02-23T19:03:23.2393596Z [command]/usr/bin/git checkout --progress --force refs/remotes/pull/7/merge
2026-02-23T19:03:23.2586711Z Note: switching to 'refs/remotes/pull/7/merge'.
2026-02-23T19:03:23.2588123Z
2026-02-23T19:03:23.2589500Z You are in 'detached HEAD' state. You can look around, make experimental
2026-02-23T19:03:23.2592007Z changes and commit them, and you can discard any commits you make in this
2026-02-23T19:03:23.2593700Z state without impacting any branches by switching back to a branch.
2026-02-23T19:03:23.2594891Z
2026-02-23T19:03:23.2595843Z If you want to create a new branch to retain commits you create, you may
2026-02-23T19:03:23.2597462Z do so (now or later) by using -c with the switch command. Example:
2026-02-23T19:03:23.2598612Z
2026-02-23T19:03:23.2599248Z git switch -c
2026-02-23T19:03:23.2599901Z
2026-02-23T19:03:23.2600253Z Or undo this operation with:
2026-02-23T19:03:23.2600825Z
2026-02-23T19:03:23.2601138Z git switch -
2026-02-23T19:03:23.2601582Z
2026-02-23T19:03:23.2602336Z Turn off this advice by setting config variable advice.detachedHead to false
2026-02-23T19:03:23.2603430Z
2026-02-23T19:03:23.2604610Z HEAD is now at f0f21b3 Merge 91ed4fed26cb58b8f6965f3064e6f13be0f080a8 into 8b3561250ea44f1b99718ea5f83783b6a5d340da
2026-02-23T19:03:23.2607931Z ##[endgroup]
2026-02-23T19:03:23.2631868Z [command]/usr/bin/git log -1 --format=%H
2026-02-23T19:03:23.2653710Z f0f21b308bc789853777b84cf99d3371bbef3c44
2026-02-23T19:03:23.2869735Z ##[group]Run set -e
2026-02-23T19:03:23.2870644Z �[36;1mset -e�[0m
2026-02-23T19:03:23.2871361Z �[36;1m�[0m
2026-02-23T19:03:23.2872595Z �[36;1mMAJOR_VERSION=$(grep '^MAJOR_VERSION=' app_python/version.env | cut -d '=' -f2-)�[0m
2026-02-23T19:03:23.2874641Z �[36;1mMINOR_VERSION=$(grep '^MINOR_VERSION=' app_python/version.env | cut -d '=' -f2-)�[0m
2026-02-23T19:03:23.2876655Z �[36;1mPATCH_VERSION=$(grep '^PATCH_VERSION=' app_python/version.env | cut -d '=' -f2-)�[0m
2026-02-23T19:03:23.2878134Z �[36;1m�[0m
2026-02-23T19:03:23.2879306Z �[36;1mVERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}"�[0m
2026-02-23T19:03:23.2880597Z �[36;1m�[0m
2026-02-23T19:03:23.2881254Z �[36;1m{�[0m
2026-02-23T19:03:23.2882027Z �[36;1m echo "MAJOR_VERSION=$MAJOR_VERSION"�[0m
2026-02-23T19:03:23.2883149Z �[36;1m echo "MINOR_VERSION=$MINOR_VERSION"�[0m
2026-02-23T19:03:23.2884271Z �[36;1m echo "PATCH_VERSION=$PATCH_VERSION"�[0m
2026-02-23T19:03:23.2885377Z �[36;1m echo "VERSION=$VERSION"�[0m
2026-02-23T19:03:23.2886308Z �[36;1m} >> "$GITHUB_OUTPUT"�[0m
2026-02-23T19:03:23.2923322Z shell: /usr/bin/bash -e {0}
2026-02-23T19:03:23.2924204Z ##[endgroup]
2026-02-23T19:03:23.3266519Z ##[group]Run docker/login-action@v3
2026-02-23T19:03:23.3267474Z with:
2026-02-23T19:03:23.3268145Z username: controlw
2026-02-23T19:03:23.3269498Z password: ***
2026-02-23T19:03:23.3270228Z logout: true
2026-02-23T19:03:23.3270911Z ##[endgroup]
2026-02-23T19:03:23.6264961Z Logging into docker.io...
2026-02-23T19:03:24.8021008Z Login Succeeded!
2026-02-23T19:03:24.8246290Z ##[group]Run docker/build-push-action@v6
2026-02-23T19:03:24.8246693Z with:
2026-02-23T19:03:24.8247036Z context: .
2026-02-23T19:03:24.8247291Z push: true
2026-02-23T19:03:24.8247616Z build-args: MAJOR_VERSION=1
MINOR_VERSION=0
PATCH_VERSION=1

2026-02-23T19:03:24.8248314Z tags: controlw/devops-info-service:1
.0
.1
controlw/devops-info-service:latest

2026-02-23T19:03:24.8249173Z labels: DEBUG_VERSION=1
.0
.1
DEBUG_MAJOR=1
DEBUG_MINOR=0
DEBUG_PATCH=1

2026-02-23T19:03:24.8249695Z load: false
2026-02-23T19:03:24.8249942Z no-cache: false
2026-02-23T19:03:24.8250174Z pull: false
2026-02-23T19:03:24.8250755Z github-token: ***
2026-02-23T19:03:24.8251041Z ##[endgroup]
2026-02-23T19:03:25.0609061Z ##[group]GitHub Actions runtime token ACs
2026-02-23T19:03:25.0621365Z refs/pull/7/merge: read/write
2026-02-23T19:03:25.0622338Z refs/heads/master: read
2026-02-23T19:03:25.0623524Z ##[endgroup]
2026-02-23T19:03:25.0624512Z ##[group]Docker info
2026-02-23T19:03:25.0698627Z [command]/usr/bin/docker version
2026-02-23T19:03:25.0916816Z Client: Docker Engine - Community
2026-02-23T19:03:25.0922100Z Version: 28.0.4
2026-02-23T19:03:25.0922557Z API version: 1.48
2026-02-23T19:03:25.0922968Z Go version: go1.23.7
2026-02-23T19:03:25.0923384Z Git commit: b8034c0
2026-02-23T19:03:25.0923792Z Built: Tue Mar 25 15:07:16 2025
2026-02-23T19:03:25.0924271Z OS/Arch: linux/amd64
2026-02-23T19:03:25.0924672Z Context: default
2026-02-23T19:03:25.0924918Z
2026-02-23T19:03:25.0925106Z Server: Docker Engine - Community
2026-02-23T19:03:25.0925556Z Engine:
2026-02-23T19:03:25.0925872Z Version: 28.0.4
2026-02-23T19:03:25.0926338Z API version: 1.48 (minimum version 1.24)
2026-02-23T19:03:25.0926832Z Go version: go1.23.7
2026-02-23T19:03:25.0927227Z Git commit: 6430e49
2026-02-23T19:03:25.0927649Z Built: Tue Mar 25 15:07:16 2025
2026-02-23T19:03:25.0928158Z OS/Arch: linux/amd64
2026-02-23T19:03:25.0928593Z Experimental: false
2026-02-23T19:03:25.0929231Z containerd:
2026-02-23T19:03:25.0929567Z Version: v2.2.1
2026-02-23T19:03:25.0930124Z GitCommit: dea7da592f5d1d2b7755e3a161be07f43fad8f75
2026-02-23T19:03:25.0930662Z runc:
2026-02-23T19:03:25.0930960Z Version: 1.3.4
2026-02-23T19:03:25.0931348Z GitCommit: v1.3.4-0-gd6d73eb8
2026-02-23T19:03:25.0931774Z docker-init:
2026-02-23T19:03:25.0932112Z Version: 0.19.0
2026-02-23T19:03:25.0932504Z GitCommit: de40ad0
2026-02-23T19:03:25.0971364Z [command]/usr/bin/docker info
2026-02-23T19:03:27.6331881Z Client: Docker Engine - Community
2026-02-23T19:03:27.6332353Z Version: 28.0.4
2026-02-23T19:03:27.6332664Z Context: default
2026-02-23T19:03:27.6332953Z Debug Mode: false
2026-02-23T19:03:27.6333230Z Plugins:
2026-02-23T19:03:27.6333516Z buildx: Docker Buildx (Docker Inc.)
2026-02-23T19:03:27.6333885Z Version: v0.31.1
2026-02-23T19:03:27.6334381Z Path: /usr/libexec/docker/cli-plugins/docker-buildx
2026-02-23T19:03:27.6334931Z compose: Docker Compose (Docker Inc.)
2026-02-23T19:03:27.6335342Z Version: v2.38.2
2026-02-23T19:03:27.6335761Z Path: /usr/libexec/docker/cli-plugins/docker-compose
2026-02-23T19:03:27.6336140Z
2026-02-23T19:03:27.6336251Z Server:
2026-02-23T19:03:27.6336518Z Containers: 0
2026-02-23T19:03:27.6336802Z Running: 0
2026-02-23T19:03:27.6337080Z Paused: 0
2026-02-23T19:03:27.6337349Z Stopped: 0
2026-02-23T19:03:27.6337625Z Images: 1
2026-02-23T19:03:27.6337904Z Server Version: 28.0.4
2026-02-23T19:03:27.6338245Z Storage Driver: overlay2
2026-02-23T19:03:27.6338607Z Backing Filesystem: extfs
2026-02-23T19:03:27.6339172Z Supports d_type: true
2026-02-23T19:03:27.6339513Z Using metacopy: false
2026-02-23T19:03:27.6339854Z Native Overlay Diff: false
2026-02-23T19:03:27.6340209Z userxattr: false
2026-02-23T19:03:27.6340527Z Logging Driver: json-file
2026-02-23T19:03:27.6341296Z Cgroup Driver: systemd
2026-02-23T19:03:27.6341643Z Cgroup Version: 2
2026-02-23T19:03:27.6342116Z Plugins:
2026-02-23T19:03:27.6342395Z Volume: local
2026-02-23T19:03:27.6342768Z Network: bridge host ipvlan macvlan null overlay
2026-02-23T19:03:27.6343417Z Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
2026-02-23T19:03:27.6343976Z Swarm: inactive
2026-02-23T19:03:27.6344312Z Runtimes: io.containerd.runc.v2 runc
2026-02-23T19:03:27.6344716Z Default Runtime: runc
2026-02-23T19:03:27.6345062Z Init Binary: docker-init
2026-02-23T19:03:27.6345521Z containerd version: dea7da592f5d1d2b7755e3a161be07f43fad8f75
2026-02-23T19:03:27.6346068Z runc version: v1.3.4-0-gd6d73eb8
2026-02-23T19:03:27.6346472Z init version: de40ad0
2026-02-23T19:03:27.6346805Z Security Options:
2026-02-23T19:03:27.6347117Z apparmor
2026-02-23T19:03:27.6347390Z seccomp
2026-02-23T19:03:27.6347660Z Profile: builtin
2026-02-23T19:03:27.6347967Z cgroupns
2026-02-23T19:03:27.6348262Z Kernel Version: 6.11.0-1018-azure
2026-02-23T19:03:27.6348868Z Operating System: Ubuntu 24.04.3 LTS
2026-02-23T19:03:27.6349579Z OSType: linux
2026-02-23T19:03:27.6349890Z Architecture: x86_64
2026-02-23T19:03:27.6350226Z CPUs: 4
2026-02-23T19:03:27.6350529Z Total Memory: 15.62GiB
2026-02-23T19:03:27.6350876Z Name: runnervmwffz4
2026-02-23T19:03:27.6351244Z ID: 073c65d4-c458-42c9-935a-939d0489da0a
2026-02-23T19:03:27.6351696Z Docker Root Dir: /var/lib/docker
2026-02-23T19:03:27.6352112Z Debug Mode: false
2026-02-23T19:03:27.6352449Z Username: controlw
2026-02-23T19:03:27.6352784Z Experimental: false
2026-02-23T19:03:27.6353135Z Insecure Registries:
2026-02-23T19:03:27.6358163Z ::1/128
2026-02-23T19:03:27.6358474Z 127.0.0.0/8
2026-02-23T19:03:27.6359013Z Live Restore Enabled: false
2026-02-23T19:03:27.6359290Z
2026-02-23T19:03:27.6359907Z ##[endgroup]
2026-02-23T19:03:27.6360532Z ##[group]Proxy configuration
2026-02-23T19:03:27.6360985Z No proxy configuration found
2026-02-23T19:03:27.6361656Z ##[endgroup]
2026-02-23T19:03:27.7563959Z ##[group]Buildx version
2026-02-23T19:03:27.7586417Z [command]/usr/bin/docker buildx version
2026-02-23T19:03:27.8480350Z github.com/docker/buildx v0.31.1 a2675950d46b2cb171b23c2015ca44fb88607531
2026-02-23T19:03:27.8524076Z ##[endgroup]
2026-02-23T19:03:27.8524770Z ##[group]Builder info
2026-02-23T19:03:27.9969599Z {
2026-02-23T19:03:27.9969974Z "nodes": [
2026-02-23T19:03:27.9970296Z {
2026-02-23T19:03:27.9970592Z "name": "default",
2026-02-23T19:03:27.9970959Z "endpoint": "default",
2026-02-23T19:03:27.9971330Z "status": "running",
2026-02-23T19:03:27.9971683Z "buildkit": "v0.20.2",
2026-02-23T19:03:27.9972200Z "platforms": "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/386",
2026-02-23T19:03:27.9972777Z "features": {
2026-02-23T19:03:27.9973130Z "Automatically load images to the Docker Engine image store": true,
2026-02-23T19:03:27.9973510Z "Cache export": true,
2026-02-23T19:03:27.9973751Z "Direct push": true,
2026-02-23T19:03:27.9973996Z "Docker exporter": true,
2026-02-23T19:03:27.9974242Z "Multi-platform build": true,
2026-02-23T19:03:27.9974497Z "OCI exporter": true
2026-02-23T19:03:27.9974701Z },
2026-02-23T19:03:27.9974866Z "labels": {
2026-02-23T19:03:27.9975174Z "org.mobyproject.buildkit.worker.moby.host-gateway-ip": "172.17.0.1"
2026-02-23T19:03:27.9975546Z }
2026-02-23T19:03:27.9975698Z }
2026-02-23T19:03:27.9975858Z ],
2026-02-23T19:03:27.9976024Z "name": "default",
2026-02-23T19:03:27.9976216Z "driver": "docker"
2026-02-23T19:03:27.9976399Z }
2026-02-23T19:03:27.9976873Z ##[endgroup]
2026-02-23T19:03:28.1715774Z [command]/usr/bin/docker buildx build --build-arg MAJOR_VERSION=1 --build-arg MINOR_VERSION=0 --build-arg PATCH_VERSION=1 --iidfile /home/runner/work/_temp/docker-actions-toolkit-cTZObw/build-iidfile-09ad360a12.txt --label DEBUG_VERSION=1 --label .0 --label .1 --label DEBUG_MAJOR=1 --label DEBUG_MINOR=0 --label DEBUG_PATCH=1 --tag controlw/devops-info-service:1 --tag .0 --tag .1 --tag controlw/devops-info-service:latest --metadata-file /home/runner/work/_temp/docker-actions-toolkit-cTZObw/build-metadata-e50d5ec175.json --push .
2026-02-23T19:03:28.2979212Z ERROR: failed to build: invalid tag ".0": invalid reference format
2026-02-23T19:03:28.3021591Z ##[group]Reference
2026-02-23T19:03:28.3844924Z No build reference found
2026-02-23T19:03:28.3845677Z ##[endgroup]
2026-02-23T19:03:28.3846169Z ##[group]Check build summary support
2026-02-23T19:03:28.3850198Z Build summary requires a build reference
2026-02-23T19:03:28.3850945Z ##[endgroup]
2026-02-23T19:03:28.3877110Z ##[error]buildx failed with: ERROR: failed to build: invalid tag ".0": invalid reference format
2026-02-23T19:03:28.4023310Z Post job cleanup.
2026-02-23T19:03:28.6433565Z ##[group]Removing temp folder /home/runner/work/_temp/docker-actions-toolkit-cTZObw
2026-02-23T19:03:28.6442828Z ##[endgroup]
2026-02-23T19:03:28.6443830Z ##[group]Post cache
2026-02-23T19:03:28.6444860Z State not set
2026-02-23T19:03:28.6445655Z ##[endgroup]
2026-02-23T19:03:28.6613882Z Post job cleanup.
2026-02-23T19:03:28.9617175Z ##[group]Logout from docker.io
2026-02-23T19:03:28.9662412Z [command]/usr/bin/docker logout docker.io
2026-02-23T19:03:28.9828960Z Removing login credentials for docker.io
2026-02-23T19:03:28.9858819Z ##[endgroup]
2026-02-23T19:03:28.9859288Z ##[group]Post cache
2026-02-23T19:03:28.9861055Z State not set
2026-02-23T19:03:28.9861870Z ##[endgroup]
2026-02-23T19:03:29.0013193Z Post job cleanup.
2026-02-23T19:03:29.0961077Z [command]/usr/bin/git version
2026-02-23T19:03:29.1012884Z git version 2.52.0
2026-02-23T19:03:29.1073357Z Temporarily overriding HOME='/home/runner/work/_temp/a1382ddb-062e-4786-961f-24c45a9b2a68' before making global git config changes
2026-02-23T19:03:29.1074112Z Adding repository directory to the temporary git global config as a safe directory
2026-02-23T19:03:29.1078475Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/DevOps-Core-Course/DevOps-Core-Course
2026-02-23T19:03:29.1111416Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2026-02-23T19:03:29.1143241Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-02-23T19:03:29.1403618Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2026-02-23T19:03:29.1424274Z http.https://github.com/.extraheader
2026-02-23T19:03:29.1436571Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2026-02-23T19:03:29.1466294Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2026-02-23T19:03:29.1683907Z [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
2026-02-23T19:03:29.1714063Z [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
2026-02-23T19:03:29.2041440Z Cleaning up orphan processes

BuildKit logs


Additional info

This behavior seems to occur only when tags/labels are provided as multiline YAML scalars with expressions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions