Skip to content

Commit 3e1a27b

Browse files
authored
Fix "Check tag consistency" in build-docker workflow (#1266)
1 parent 0278b59 commit 3e1a27b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
env:
5656
TAG: ${{ inputs.plan != '' && fromJson(inputs.plan).announcement_tag || 'dry-run' }}
5757
run: |
58-
version=$(grep -m 1 "^version = " dist-workspace.toml | sed -e 's/version = "\(.*\)"/\1/g')
58+
version=$(grep -m 1 "^version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g')
5959
if [ "${TAG}" != "${version}" ]; then
60-
echo "The input tag does not match the version from dist-workspace.toml:" >&2
60+
echo "The input tag does not match the version from pyproject.toml:" >&2
6161
echo "${TAG}" >&2
6262
echo "${version}" >&2
6363
exit 1
@@ -68,6 +68,8 @@ jobs:
6868
- name: Extract metadata (tags, labels) for Docker
6969
id: meta
7070
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
71+
env:
72+
DOCKER_METADATA_ANNOTATIONS_LEVELS: index
7173
with:
7274
images: ${{ env.PREK_BASE_IMG }}
7375
# Defining this makes sure the org.opencontainers.image.version OCI label becomes the actual release version and not the branch name

0 commit comments

Comments
 (0)