Skip to content
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

pages: Fix deploy keys #1243

Merged
merged 3 commits into from
May 6, 2022
Merged

Conversation

0az
Copy link
Contributor

@0az 0az commented Sep 2, 2021

pages: Fix deploy key check on GHE

Remove a hardcoded github.com in the pages provider's deploy key validation check, which breaks deployment pipelines running against GitHub Enterprise.

Force usage of selected identity when using SSH for git

This fixes usage of read-write deploy keys with the pages deploy_key option when the Travis default private key is only authorized for read-only access.

pages: Show more information when pushing

This makes debugging broken deployments slightly easier, as error messages are no longer suppressed.


Signed-off-by: afzhou afzhou@ibm.com

Remove a hardcoded github.com in the pages provider's deploy key
validation check, which breaks deployment pipelines running against
GitHub Enterprise.

Signed-off-by: afzhou <afzhou@ibm.com>
This fixes usage of read-write deploy keys with the pages deploy_key
option when the Travis default private key is only authorized for
read-only access.

Signed-off-by: afzhou <afzhou@ibm.com>
This makes debugging broken deployments slightly easier, as error
messages are no longer suppressed.

- Enable echo for push and disable /dev/null redirection
- Print SSH key fingerprint and randomart

Signed-off-by: afzhou <afzhou@ibm.com>
@GbArc GbArc merged commit d104a6e into travis-ci:master May 6, 2022
@@ -155,7 +155,8 @@ def git_commit
end

def git_push
shell :git_push, echo: false
shell 'ssh-keygen -lv -f /home/travis/.dpl/deploy_key'
Copy link

Choose a reason for hiding this comment

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

This line has broke our pipelines. We are using token authentication and the file which is checked here is not available and build breaks due to that

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.

None yet

3 participants