Add logs to Docker build GitHub action

This commit is contained in:
Stefan Prodan
2018-10-27 11:48:32 +03:00
parent bf92728234
commit 97157694be
+2 -1
View File
@@ -15,10 +15,11 @@ if [[ "$1" == "build" ]]; then
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} \
--build-arg REPOSITORY=${GITHUB_REPOSITORY} \
--build-arg SHA=${GITHUB_SHA} -f $2 .
echo "Docker image tagged as ${DOCKER_IMAGE}:${DOCKER_TAG}"
fi
if [[ "$1" == "push" ]]; then
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
echo "Docker image pushed to ${DOCKER_IMAGE}:${DOCKER_TAG}"
fi
echo "Docker image pushed to ${DOCKER_IMAGE}:${DOCKER_TAG}"