Skip to content

Commit

Permalink
Rename optional test stage attribute to dev.polymathrobotics.containe…
Browse files Browse the repository at this point in the history
…r-build-publish-action.run-test-stage
  • Loading branch information
taylorific committed Nov 19, 2024
1 parent 4127e31 commit cdecbff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/run-test-stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -eu -o pipefail

json_data="$(docker buildx bake --print 2>/dev/null)"
first_build_target=$(echo "$json_data" | jq -r '.target | to_entries[0].value')
if echo "$first_build_target" | jq -e '.labels."dev.polymathrobotics.test.container-build-publish-action.run-test-stage"' > /dev/null; then
run_test_stage=$(echo "$first_build_target" | jq -r '.labels."dev.polymathrobotics.test.container-build-publish-action.run-test-stage"')
if echo "$first_build_target" | jq -e '.labels."dev.polymathrobotics.container-build-publish-action.run-test-stage"' > /dev/null; then
run_test_stage=$(echo "$first_build_target" | jq -r '.labels."dev.polymathrobotics.container-build-publish-action.run-test-stage"')
echo "$run_test_stage"
else
echo "true"
Expand Down
2 changes: 1 addition & 1 deletion cinc/cinc-auditor/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ target "default" {
"org.opencontainers.image.description" = "Cinc Auditing and Testing Framework."
"org.opencontainers.image.title" = "${TAG_PREFIX}"
"org.opencontainers.image.created" = "${timestamp()}"
"dev.polymathrobotics.test.container-build-publish-action.run-test-stage" = "false"
"dev.polymathrobotics.container-build-publish-action.run-test-stage" = "false"
}
}

0 comments on commit cdecbff

Please sign in to comment.