Skip to content

Commit

Permalink
ci.sh: for push, check repo and correct branch
Browse files Browse the repository at this point in the history
Also, remove extra '}' character in built step summary.
  • Loading branch information
kanaka committed Aug 6, 2024
1 parent b423d35 commit 8ac470f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ echo "MAKE: ${MAKE}"
case "${ACTION}" in
docker-build-push)
if ! docker pull ${IMAGE}; then
step_summary "${MAL_IMPL:-${IMPL}} - building ${IMAGE}"
step_summary "${BUILD_IMPL} - building ${IMAGE}"
make "docker-build^${BUILD_IMPL}"
step_summary "${BUILD_IMPL}} - built ${IMAGE}"
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
step_summary "${BUILD_IMPL} - built ${IMAGE}"
if [ "${GITHUB_REPOSITORY}" = "kanaka/mal" ] && [ "${GITHUB_REF}" = "refs/heads/master" ]; then
docker push ${IMAGE}
step_summary "${BUILD_IMPL} - pushed ${IMAGE}"
fi
Expand Down

0 comments on commit 8ac470f

Please sign in to comment.