Added multi-tag Dockerhub image configuration

This commit is contained in:
David Heaps 2024-02-12 22:43:54 -08:00
parent 4fcd7bddc9
commit 382274c854
2 changed files with 11 additions and 7 deletions

View File

@ -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" .

View File

@ -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"