• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5export DOCKER_BUILDKIT=1
6
7TAG_BASE=gcr.io/crosvm-infra
8VERSION=$(shell cat version)
9BUILD_CONTEXT=$(shell realpath ../../../)
10
11DOCKER ?= podman
12
13all: crosvm_dev
14
15upload: all
16	$(DOCKER) push $(TAG_BASE)/crosvm_dev:$(VERSION)
17	$(DOCKER) push $(TAG_BASE)/crosvm_dev:latest
18
19crosvm_dev:
20	$(DOCKER) build \
21		-t $(TAG_BASE)/$@:$(VERSION) \
22		-f Dockerfile \
23		$(BUILD_CONTEXT)
24	$(DOCKER) tag $(TAG_BASE)/$@:$(VERSION) $(TAG_BASE)/$@:latest
25
26.PHONY: all crosvm_dev upload
27