Skip to content

Commit

Permalink
Add logs to Docker build GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 27, 2018
1 parent bf92728 commit 9715769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 9715769

Please sign in to comment.