rust-raspberrypi-OS-tutorials/docker/rustembedded-osdev-utils/Makefile

26 lines
804 B
Makefile
Raw Normal View History

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
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) \
--build-arg VCS_REF=`git rev-parse --short HEAD` .
2021-11-22 21:37:13 +00:00
rm Gemfile
buildx_push:
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` .
rm Gemfile