Skip to content

Commit

Permalink
add build folder
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Dubrick <[email protected]>
  • Loading branch information
Jdubrick committed May 15, 2024
1 parent 1eb599a commit de1f8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oci-registry/build-multi-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

buildfolder="$(basename "$(dirname "$0")")"
# Due to command differences between podman and docker we need to separate the process
# for creating and adding images to a multi-arch manifest
podman=${USE_PODMAN:-false}
Expand All @@ -24,7 +25,7 @@ function build {
IMAGE="quay.io/rh-ee-jdubrick/oci-registry:$2"

echo "Building: ${IMAGE}"
$1 build -t $IMAGE --platform "linux/$2" .
$1 build -t $IMAGE --platform "linux/$2" "$buildfolder"

echo "Tagging: ${IMAGE}"
$1 tag "$IMAGE" "$IMAGE"
Expand Down

0 comments on commit de1f8da

Please sign in to comment.