Skip to content

Commit

Permalink
Fix publish script for non-connector images (#6537)
Browse files Browse the repository at this point in the history
  • Loading branch information
avida authored Sep 29, 2021
1 parent eb04c1a commit b95f366
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/integrations/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ cmd_publish() {
esac
done

if [[ ! $path =~ "connectors" ]]
then
# Do not publish spec to cache in case this is not a connector
publish_spec_to_cache=false
fi


cmd_build "$path" "$run_tests"

local image_name; image_name=$(_get_docker_image_name "$path"/Dockerfile)
Expand All @@ -90,7 +97,7 @@ cmd_publish() {
docker push "$versioned_image"
docker push "$latest_image"

if [[ "true" == "${publish_spec_to_cache}" && "airbyte/normalization" != "${image_name}" ]]; then
if [[ "true" == "${publish_spec_to_cache}" ]]; then
echo "Publishing and writing to spec cache."

# publish spec to cache. do so, by running get spec locally and then pushing it to gcs.
Expand Down

0 comments on commit b95f366

Please sign in to comment.