Skip to content

Commit

Permalink
Use default target not local for labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 20, 2023
1 parent 77de205 commit 9e22586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
if: github.event_name != 'pull_request'
id: image_name
run: |
json_data="$(docker buildx bake local --print 2>/dev/null)"
json_data="$(docker buildx bake --print 2>/dev/null)"
if echo "$json_data" | jq -e '.target.default.labels["dev.polymathrobotics.image.readme-filepath"]' > /dev/null; then
image_name=$(echo $json_data | jq -r '.target."release-default".["dev.polymathrobotics.image.title"]')
echo "image_name=$image_name" >> $GITHUB_ENV
Expand All @@ -117,7 +117,7 @@ jobs:
if: github.event_name != 'pull_request'
id: image_description
run: |
json_data="$(docker buildx bake local --print 2>/dev/null)"
json_data="$(docker buildx bake --print 2>/dev/null)"
if echo "$json_data" | jq -e '.target.default.labels["dev.polymathrobotics.image.readme-filepath"]' > /dev/null; then
image_description=$(echo $json_data | jq -r '.target."release-default".labels["dev.polymathrobotics.image.description"]')
echo "image_description=$image_name" >> $GITHUB_ENV
Expand All @@ -130,7 +130,7 @@ jobs:
id: image_readme_filepath
run: |
# Check if .group.local.targets.default exists, and if it does, extract its value
json_data="$(docker buildx bake local --print 2>/dev/null)"
json_data="$(docker buildx bake --print 2>/dev/null)"
if echo "$json_data" | jq -e '.target.default.labels["dev.polymathrobotics.image.readme-filepath"]' > /dev/null; then
readme_filepath=$(echo $json_data | jq -r '.target.default.labels["dev.polymathrobotics.image.readme-filepath"]')
echo "image_readme_filepath=$readme_filepath" >> $GITHUB_ENV
Expand Down

0 comments on commit 9e22586

Please sign in to comment.