Skip to content

[Github Actions] Rename docker secrets and parameterize docker user #13297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2022

Conversation

evantahler
Copy link
Contributor

@evantahler evantahler commented May 28, 2022

Related to https://github.com/airbytehq/airbyte-cloud/issues/1763

This PR renames the secrets so that old branches stop working and folks will need to rebase from master to publish from here on out. I also require a secret for the docker username.

Note: DO NOT update the secrets until this PR is merged to master!

@evantahler evantahler requested a review from pedroslopez May 28, 2022 01:04
@evantahler evantahler marked this pull request as ready for review May 28, 2022 01:05
@evantahler evantahler temporarily deployed to more-secrets May 28, 2022 01:05 Inactive
@evantahler evantahler changed the title Rename docker secrets and parameterize docker user [Github Actions] Rename docker secrets and parameterize docker user May 28, 2022
@evantahler evantahler requested a review from cgardens May 28, 2022 01:07
Copy link
Contributor

@pedroslopez pedroslopez left a comment

Choose a reason for hiding this comment

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

Looks good, one question on token generation for acceptance_test_kube_gke

@@ -44,7 +44,7 @@ function findAndDeleteTag () {
}

function cleanUpImages () {
TOKEN=$(curl --request POST 'https://hub.docker.com/v2/users/login/' --header 'Content-Type: application/json' --data-raw '{"username":"airbytebot","password":"'$DOCKER_PASSWORD'"}' | jq '.token')
TOKEN=$(curl --request POST 'https://hub.docker.com/v2/users/login/' --header 'Content-Type: application/json' --data-raw '{"username":"'$DOCKER_HUB_USERNAME'","password":"'$DOCKER_HUB_PASSWORD'"}' | jq '.token')
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm - this one is also grabbing a token through curl, do we need to set +x set -x here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, because no where in the file do we turn that on (set +x)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

... but maybe we should?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah! I see, it was specifically enabled on manage.sh - should be ok then

@evantahler evantahler temporarily deployed to more-secrets May 28, 2022 01:20 Inactive
@evantahler evantahler merged commit d1ff8dd into master May 28, 2022
@evantahler evantahler deleted the evan/docker-token-secret branch May 28, 2022 01:48
jscottpolevault pushed a commit to jscottpolevault/airbyte that referenced this pull request Jun 1, 2022
…irbytehq#13297)

* Rename docker secrets and parameterize docker user

* Apply suggestions from code review

Co-authored-by: Pedro S. Lopez <[email protected]>

Co-authored-by: Pedro S. Lopez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants