-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from binbashar/feature/docker-buildx-multi-arch
Feature/docker buildx multi arch
- Loading branch information
Showing
11 changed files
with
27 additions
and
1,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-include ../../@bin/config/base.mk | ||
|
||
.PHONY: help | ||
SHELL := /bin/bash | ||
DOCKER_REPO_NAME := binbash | ||
|
||
help: | ||
@echo 'Available Commands:' | ||
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":"}; { if ($$3 == "") { printf " - \033[36m%-18s\033[0m %s\n", $$1, $$2 } else { printf " - \033[36m%-18s\033[0m %s\n", $$2, $$3 }}' | ||
|
||
#==============================================================# | ||
# DOCKER # | ||
#==============================================================# | ||
build: ## build docker image | ||
docker buildx build \ | ||
--platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8 \ | ||
-t ${DOCKER_REPO_NAME}/${DOCKER_IMG_NAME}:${DOCKER_TAG} \ | ||
--build-arg DOCKER_TAG='${DOCKER_TAG}' . | ||
|
||
push: ## push docker image to registry | ||
docker buildx build \ | ||
--platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8 \ | ||
--push \ | ||
-t ${DOCKER_REPO_NAME}/${DOCKER_IMG_NAME}:${DOCKER_TAG} \ | ||
--build-arg DOCKER_TAG='${DOCKER_TAG}' . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.