Introducing automated builds for this image.

This commit is contained in:
Pat Garrity 2024-03-24 10:10:38 -05:00
parent b86d592cf6
commit e4ddaa0fed
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
3 changed files with 47 additions and 1 deletions

View file

@ -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"

13
.pre-commit-config.yaml Normal file
View file

@ -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

View file

@ -1,4 +1,8 @@
# ci-scala # ci-scala
Produces a container image suitable for Scala builds within the Garrity Software 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
```