Create and publish linux/amd64 and linux/arm64 builds on release#504
Create and publish linux/amd64 and linux/arm64 builds on release#504mmoscher wants to merge 17 commits intopravega:masterfrom
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 <Nishant_Gupta3@dell.com> Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
* upgrading zookeeper to 3.7.1 Signed-off-by: Amit-Singh40 <amit.singh30@dell.com> * updating zookeeper version in build.gradle.kts and readme file Signed-off-by: Amit-Singh40 <amit.singh30@dell.com> Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Sava Lifanov <sl@darktree.com> Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: hoyhbx <hoyhbx@gmail.com> Signed-off-by: hoyhbx <hoyhbx@gmail.com> Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
|
@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. |
| 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.
If the push target is obsolete now, should we just remove it?
|
|
||
| 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.
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
publishjob in theci.yamlGHA 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
pushMakefile-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-imageandbuild-and-push-multiarch-zk-imagetargets in makefile and calls these targets in the GHA CI workflow when a release was createdHow to verify it