Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Don't Always Push to DockerHub #10485

Merged
merged 2 commits into from
Jul 9, 2021
Merged

Conversation

williamblevins
Copy link
Collaborator

@williamblevins williamblevins commented Jul 8, 2021

Change Description

From AUTO-1016, we have downstream consumers of our CI systems who may not want to push to DockerHub. This pull request allows these downstream consumers who are running our CI code to push to internal registries exclusively.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@williamblevins williamblevins marked this pull request as ready for review July 9, 2021 14:05
Copy link
Contributor

@kj4ezj kj4ezj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀

Comment on lines 10 to 16
if [[ "$BUILDKITE_PIPELINE_SLUG" =~ "security" ]] ; then
export CI_REGISTRIES=("$DOCKERHUB_CI_REGISTRY" "$MIRROR_REGISTRY")
export CONTRACT_REGISTRIES=("$DOCKERHUB_CONTRACTS_REGISTRY" "$MIRROR_REGISTRY")
else
export CI_REGISTRIES=("$MIRROR_REGISTRY")
export CONTRACT_REGISTRIES=("$MIRROR_REGISTRY")
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this logic is backwards.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good catch. I think CONTRACTS flags are turned off in the pipeline, so I wasn't paying enough attention ;(

@williamblevins williamblevins force-pushed the develop_sec_no_pub_docker branch from 80c6acb to 85e13a5 Compare July 9, 2021 14:11
@kj4ezj kj4ezj changed the title Disable docker interactions for security-like repos. Don't Always Push to DockerHub Jul 9, 2021
Copy link
Contributor

@kj4ezj kj4ezj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐳

@williamblevins williamblevins merged commit 9582bef into develop Jul 9, 2021
@williamblevins williamblevins deleted the develop_sec_no_pub_docker branch July 9, 2021 15:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants