2025-02-16 21:51:36 +05:30

12 lines
462 B
Bash
Executable File

#!/bin/sh
#Build and push the dev (or build) image for the project use both for local development
# and to build the project remotely
#The prod image (alpine based) is usually different from the dev/build image (ubuntu based).
. ./fab/sh/constants.sh
cd ${REPO_FOLDER}
docker build --tag ${GMETRI_DREPO}/${REPO_BASE}/${REPO_NAME}:${TAG_BASE} \
-f fab/d/actions-base.Dockerfile ./fab/context/
docker push ${GMETRI_DREPO}/${REPO_BASE}/${REPO_NAME}:${TAG_BASE}