Skip to content

Commit

Permalink
Create build-images job.
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Sep 19, 2023
1 parent 790b40b commit 5a2d25e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ for v in 8 11 17; do
exit $RC
fi
echo "Created: $REPO:$TAG-jdk$v"
docker push "$IMAGE:$TAG-jdk$v"
docker push "$REPO:$TAG-jdk$v"
RC=$?
if ((RC!=0)); then
exit $RC
fi
echo "Pushed $IMAGE:$TAG-jdk$v"
echo "Pushed $REPO:$TAG-jdk$v"
if [ "$DEFAULT_JDK" == "$v" ]; then
docker tag "$IMAGE:$TAG-jdk$DEFAULT_JDK" "$IMAGE:$TAG"
docker push "$IMAGE:$TAG"
echo "Pushed $IMAGE:$TAG"
docker tag "$REPO:$TAG-jdk$DEFAULT_JDK" "$REPO:$TAG"
docker push "$REPO:$TAG"
echo "Pushed $REPO:$TAG"
fi
done
echo "Pruning Docker"
Expand Down

0 comments on commit 5a2d25e

Please sign in to comment.