2019-12-25 17:32:52 +00:00
|
|
|
## SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
##
|
2021-01-01 10:28:32 +00:00
|
|
|
## Copyright (c) 2019-2021 Andre Richter <andre.o.richter@gmail.com>
|
2019-12-25 17:32:52 +00:00
|
|
|
|
2021-11-22 21:37:13 +00:00
|
|
|
# Reference followed: https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux
|
2019-12-25 17:32:52 +00:00
|
|
|
|
2021-12-02 19:44:12 +00:00
|
|
|
TAG := 2021.12
|
2021-11-22 21:37:13 +00:00
|
|
|
|
|
|
|
default: build_local
|
|
|
|
|
|
|
|
build_local:
|
|
|
|
cp ../../Gemfile .
|
|
|
|
docker build \
|
|
|
|
--tag rustembedded/osdev-utils:$(TAG) \
|
2021-12-02 19:44:12 +00:00
|
|
|
--build-arg VCS_REF=`git rev-parse --short HEAD` .
|
2021-11-22 21:37:13 +00:00
|
|
|
rm Gemfile
|
|
|
|
|
|
|
|
buildx_push:
|
2020-01-14 19:45:41 +00:00
|
|
|
cp ../../Gemfile .
|
2021-11-22 21:37:13 +00:00
|
|
|
docker buildx build \
|
|
|
|
--push \
|
|
|
|
--platform linux/arm64/v8,linux/amd64 \
|
|
|
|
--tag rustembedded/osdev-utils:$(TAG) \
|
|
|
|
--build-arg VCS_REF=`git rev-parse --short HEAD` .
|
2020-01-14 19:45:41 +00:00
|
|
|
rm Gemfile
|