# SPDX-FileCopyrightText: 2024 The Refinery Authors # # SPDX-License-Identifier: EPL-2.0 variable "REFINERY_VERSION" { default = "" } group "default" { targets = ["cli", "web"] } target "base" { dockerfile = "Dockerfile.base" platforms = ["linux/amd64", "linux/arm64"] output = ["type=cacheonly"] } target "cli" { dockerfile = "Dockerfile.cli" platforms = ["linux/amd64", "linux/arm64"] output = [ "type=image,\"name=ghcr.io/graphs4value/refinery:cli-${REFINERY_VERSION},ghcr.io/graphs4value/refinery:cli\",push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" ] contexts = { base = "target:base" } } target "web" { dockerfile = "Dockerfile.web" platforms = ["linux/amd64", "linux/arm64"] output = [ "type=image,\"name=ghcr.io/graphs4value/refinery:${REFINERY_VERSION},ghcr.io/graphs4value/refinery:latest\",push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" ] contexts = { base = "target:base" } }