-
Notifications
You must be signed in to change notification settings - Fork 206
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
Create and publish linux/amd64 and linux/arm64 builds on release #504
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportBase: 85.05% // Head: 85.05% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #504 +/- ##
=======================================
Coverage 85.05% 85.05%
=======================================
Files 12 12
Lines 1606 1606
=======================================
Hits 1366 1366
Misses 155 155
Partials 85 85 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…he teardown script (pravega#483) Signed-off-by: Nishant Gupta <[email protected]> Signed-off-by: Marco Moscher <[email protected]>
* upgrading zookeeper to 3.7.1 Signed-off-by: Amit-Singh40 <[email protected]> * updating zookeeper version in build.gradle.kts and readme file Signed-off-by: Amit-Singh40 <[email protected]> Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Sava Lifanov <[email protected]> Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: hoyhbx <[email protected]> Signed-off-by: hoyhbx <[email protected]> Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
Signed-off-by: Marco Moscher <[email protected]>
@anishakj seem's that the commit singoffs are broken. If this PR is helpful at all, I would create a new one with a single commit introducing these changes. |
@mmoscher Have you verified the binary created for arm64 |
@anishakj nope not yet, since the build can only be done in the emulated docker platform, thus in the container itself. |
Status of this? |
@janhoy sorry to say, but nothing new yet! Feel free to move on and submit PR's to my fork, if you like. |
@@ -137,6 +137,28 @@ build-zk-image: | |||
docker build --build-arg VERSION=$(VERSION) --build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) --build-arg GIT_SHA=$(GIT_SHA) -t $(APP_REPO):$(VERSION) ./docker | |||
docker tag $(APP_REPO):$(VERSION) $(APP_REPO):latest | |||
|
|||
build-and-push-multiarch-image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the push
target is obsolete now, should we just remove it?
@@ -163,7 +185,7 @@ run-local: | |||
go run ./main.go | |||
|
|||
login: | |||
@docker login -u "$(DOCKER_USER)" -p "$(DOCKER_PASS)" | |||
echo "$(DOCKER_PASS)" | docker login -u "$(DOCKER_USER)" --password-stdin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you change the login
target command-line to match the test-login
command-line, but then you don't use it above in the GitHub Actions workflow during the publish. Does make login
not work? Do we need to bind the secrets as environment variables before calling make login
?
Here is an example of binding secrets to environment variables: https://github.com/pravega/pravega/blob/master/.github/workflows/gradle.yml#L152
Change log description
This PR creates mutliarch builds of pravega/zookeeper-operator and pravega/zookeeper using docker buildx when a new GitHub release is crafted.
However... the available
publish
job in theci.yaml
GHA workflow was broken. For example, the job does no code-checkout at all and thus was uncapable of running (finding) the Makefile. Uhrgs.Question: Is the provided GHA worklfow and your
push
Makefile-target used at all? IMHO not :/ :(Because: a) the "ALTREPO" used in the Makefile for pushing image (make push) is pointing to another docker-hub repo where another user is pushing docker-images. For example, in the pravega docker-hub repos a user called pravegaci is pushing images, whereas in the emccorp repos the user is called ecsjenkins. Since the Makefile has only one docker login call, pushing with different users in a CI environment is impossible.
b) Additionally, the emccorp/zookeeper-operator:latest tag was created 3 years ago whereas the latest tag is ~5 months old. An automated push on release to the altrepo would have created the tag "latest" as well.
All-in-all: it seems there is another CI or manual build-process in place, for what reason I'm uncertain if this PR will help at all :(
@anishakj pretty please clarify how you are publishing your docker-images. Thanks :)
Purpose of the change
What the code does
build-and-push-multiarch-image
andbuild-and-push-multiarch-zk-image
targets in makefile and calls these targets in the GHA CI workflow when a release was createdHow to verify it