Files
openafc_final/tests/regression/docker_build_and_push.sh
2024-03-25 10:11:24 -04:00

15 lines
561 B
Bash
Executable File

#!/bin/bash
#
# Copyright © 2022 Broadcom. All rights reserved. The term "Broadcom"
# refers solely to the Broadcom Inc. corporate affiliate that owns
# the software below. This work is licensed under the OpenAFC Project License,
# a copy of which is included with this software program
#
set -x
echo `pwd`
source ./tests/regression/regression.sh
file=${1} # Name of the Dockerfile
image=${2} # Name and optionally a tag in the 'name:tag' format
# args=${3:-" "} # extra args for docker build command
docker_build_and_push ${file} ${image} "$3"