diff --git a/Dockerfile b/Containerfile similarity index 76% rename from Dockerfile rename to Containerfile index 4c97001..b62a32a 100644 --- a/Dockerfile +++ b/Containerfile @@ -1,6 +1,9 @@ FROM docker.io/library/eclipse-temurin:21-jdk-alpine -RUN apk add curl bash git docker python3 py3-pip +# git is required for checkout +# python3 is required for pre-commit +# node is required for Forgejo checkout +RUN apk add curl bash git docker python3 py3-pip nodejs npm RUN pip3 install pre-commit --break-system-packages # Create the user - builds do not run as root. @@ -18,3 +21,4 @@ RUN rm ./coursier RUN mkdir -p /home/builder/.local/bin ENV PATH="${PATH}:/home/builder/.local/share/coursier/bin" ENV PATH="${PATH}:/home/builder/.local/bin" +RUN git config --global init.defaultBranch main diff --git a/build-and-push b/build-and-push new file mode 100755 index 0000000..5cb4694 --- /dev/null +++ b/build-and-push @@ -0,0 +1,4 @@ +#!/bin/sh + +podman build --tag registry.garrity.co:8443/gs/ci-scala:latest . +podman push registry.garrity.co:8443/gs/ci-scala:latest