From 382274c85424d04d57744ece1db8a630b0a81069 Mon Sep 17 00:00:00 2001 From: David Heaps Date: Mon, 12 Feb 2024 22:43:54 -0800 Subject: [PATCH] Added multi-tag Dockerhub image configuration --- docker/master-min/hooks/build | 13 ++++++------- docker/master-min/hooks/pre_push | 5 +++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 docker/master-min/hooks/pre_push diff --git a/docker/master-min/hooks/build b/docker/master-min/hooks/build index 95dcea5663..511bdf56c6 100644 --- a/docker/master-min/hooks/build +++ b/docker/master-min/hooks/build @@ -1,7 +1,6 @@ -#!/usr/bin/env sh - -pwd > pwd_file -find / > build.files -set > build.env - -docker build --build-arg=TOKEN="${Token}" -t $IMAGE_NAME . +#!/bin/bash +docker build --build-arg TOKEN="$Token" -t "$IMAGE_NAME" . +docker build --build-arg TOKEN="$Token" --build-arg WITHOUT_PYTHON="false" -t "$DOCKER_REPO:python" . +docker build --build-arg TOKEN="$Token" --build-arg WITHOUT_JAVA="false" -t "$DOCKER_REPO:java" . +docker build --build-arg TOKEN="$Token" --build-arg WITHOUT_PERL="false" -t "$DOCKER_REPO:perl" . +docker build --build-arg TOKEN="$Token" --build-arg WITHOUT_PERL="false" --build-arg WITHOUT_PYTHON="false" --build-arg WITHOUT_JAVA="false" -t "$DOCKER_REPO:full" . \ No newline at end of file diff --git a/docker/master-min/hooks/pre_push b/docker/master-min/hooks/pre_push new file mode 100644 index 0000000000..5c08326863 --- /dev/null +++ b/docker/master-min/hooks/pre_push @@ -0,0 +1,5 @@ +#!/bin/bash +docker push "$DOCKER_REPO:python" +docker push "$DOCKER_REPO:java" +docker push "$DOCKER_REPO:perl" +docker push "$DOCKER_REPO:full" \ No newline at end of file