-
Notifications
You must be signed in to change notification settings - Fork 204
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?
Changes from all commits
79f970d
d2f588e
27e3a93
a10dcfa
f94494f
d3a9902
f5c9d8b
e0c8c56
a57ecac
3ce4de0
348a501
6e1a85d
336db27
11b5181
d6edd99
04f7720
814ff04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
docker buildx build \ | ||
--push \ | ||
--build-arg VERSION=$(VERSION) \ | ||
--build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) \ | ||
--build-arg GIT_SHA=$(GIT_SHA) \ | ||
--platform=linux/amd64,linux/arm64 \ | ||
-t $(REPO):$(VERSION) \ | ||
-t $(REPO):latest \ | ||
. | ||
|
||
build-and-push-multiarch-zk-image: | ||
docker buildx build \ | ||
--push \ | ||
--build-arg VERSION=$(VERSION) \ | ||
--build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) \ | ||
--build-arg GIT_SHA=$(GIT_SHA) \ | ||
--platform=linux/amd64,linux/arm64 \ | ||
-t $(APP_REPO):$(VERSION) \ | ||
-t $(APP_REPO):latest \ | ||
./docker | ||
|
||
build-zk-image-swarm: | ||
docker build --build-arg VERSION=$(VERSION)-swarm --build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) --build-arg GIT_SHA=$(GIT_SHA) \ | ||
-f ./docker/Dockerfile-swarm -t $(APP_REPO):$(VERSION)-swarm ./docker | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Here you change the Here is an example of binding secrets to environment variables: https://github.com/pravega/pravega/blob/master/.github/workflows/gradle.yml#L152 |
||
|
||
test-login: | ||
echo "$(DOCKER_TEST_PASS)" | docker login -u "$(DOCKER_TEST_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.
If the
push
target is obsolete now, should we just remove it?