diff --git a/.forgejo/workflows/pull_request.yaml b/.forgejo/workflows/pull_request.yaml new file mode 100644 index 0000000..fc492c8 --- /dev/null +++ b/.forgejo/workflows/pull_request.yaml @@ -0,0 +1,29 @@ +on: + pull_request: + types: [opened, synchronize, reopened] + +defaults: + run: + shell: bash + +jobs: + ci_image_build: + runs-on: docker + container: + image: mgoltzsche/podman:rootless + name: 'Build and Test CI Image' + env: + IMAGE_TAG: registry.garrity.co:8443/gs/ci-scala:pre-release + steps: + - uses: actions/checkout@v4 + name: 'Checkout Repository' + with: + fetch-depth: 0 + - name: 'Pre-Commit' + run: | + pre-commit install + pre-commit run --all-files + - name: 'Build and Push Pre-Release' + run: | + podman build --tag "$IMAGE_TAG" . + podman push "$IMAGE_TAG" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..7f16c0e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: fix-byte-order-marker + - id: mixed-line-ending + args: ['--fix=lf'] + description: Enforces using only 'LF' line endings. + - id: trailing-whitespace + - id: check-yaml diff --git a/README.md b/README.md index ad5777d..51941b7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ # ci-scala Produces a container image suitable for Scala builds within the Garrity Software -ecosystem. +ecosystem. This image is not useable outside of the GS build environment. + +``` +registry.garrity.co:8443/gs/ci-scala:latest +```