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

docker: fix publish workflow #552

Merged
merged 1 commit into from
Jun 1, 2021
Merged

docker: fix publish workflow #552

merged 1 commit into from
Jun 1, 2021

Conversation

LawnGnome
Copy link
Contributor

Since a credential rotation, the GitHub Action responsible for pushing the src-batch-change-volume-workspace has been failing. This action works as expected when used via Docker outside of the GitHub Action infrastructure; I suspect there's an issue with the handling of a particular character in the action-specific entry script.

That said, there's not much reason to pull in a third party action here; the push script already has the required credentials, and the Docker Hub API, while undocumented, is straightforward. I've added the required urllib-foo to make this happen. (I'd normally pull in Python's excellent requests library for this kind of thing, but that means we'd have to start installing dependencies in the GitHub Action that runs this script, and that feels like more effort than I'm really willing to go to here.)

Fixes #548.

Since a credential rotation, the GitHub Action responsible for pushing
the [src-batch-change-volume-workspace][1] has been failing. This action
works as expected when used via Docker outside of the GitHub Action
infrastructure; I suspect there's an issue with the handling of a
particular character in the action-specific entry script.

That said, there's not _much_ reason to pull in a third party action
here; the push script already has the required credentials, and the
Docker Hub API, while undocumented, is straightforward. I've added the
required urllib-foo to make this happen. (I'd normally pull in Python's
excellent requests library for this kind of thing, but that means we'd
have to start installing dependencies in the GitHub Action that runs
this script, and that feels like more effort than I'm really willing to
go to here.)

Fixes #548.

[1]: https://hub.docker.com/r/sourcegraph/src-batch-change-volume-workspace
@LawnGnome LawnGnome requested a review from a team June 1, 2021 00:15
@LawnGnome LawnGnome self-assigned this Jun 1, 2021
@@ -1,4 +1,4 @@
name: GoReleaser
name: GoReleaser check
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically, this is unrelated, but it's been annoying me for several releases now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Helpful!!! 🙌

Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

This is the most python I've read in two years I guess 😅 not sure how much my review is worth but it looks legit to me. Thanks for looking into this!

@LawnGnome LawnGnome added this to In Progress in Batchers - Backlog Jun 1, 2021
Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

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

Looks great! Curious how you were able to test this? 😮

@LawnGnome
Copy link
Contributor Author

Looks great! Curious how you were able to test this? open_mouth

I ran the script locally, but pushed it to an image in my personal account rather than Sourcegraph. Once this is merged, I'll likely cut a release just to iron out whatever issues we might have with the Action part, which is fairly difficult to test.

@LawnGnome LawnGnome merged commit 65e7ea8 into main Jun 1, 2021
@LawnGnome LawnGnome deleted the aharvey/fix-docker-release branch June 1, 2021 20:38
Batchers - Backlog automation moved this from In Progress to Done Jun 1, 2021
scjohns pushed a commit that referenced this pull request Apr 24, 2023
Since a credential rotation, the GitHub Action responsible for pushing
the [src-batch-change-volume-workspace][1] has been failing. This action
works as expected when used via Docker outside of the GitHub Action
infrastructure; I suspect there's an issue with the handling of a
particular character in the action-specific entry script.

That said, there's not _much_ reason to pull in a third party action
here; the push script already has the required credentials, and the
Docker Hub API, while undocumented, is straightforward. I've added the
required urllib-foo to make this happen. (I'd normally pull in Python's
excellent requests library for this kind of thing, but that means we'd
have to start installing dependencies in the GitHub Action that runs
this script, and that feels like more effort than I'm really willing to
go to here.)

Fixes #548.

[1]: https://hub.docker.com/r/sourcegraph/src-batch-change-volume-workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Updating the Docker Hub description on release fails
3 participants