Introducing automated builds for this image.
This commit is contained in:
parent
b86d592cf6
commit
e4ddaa0fed
3 changed files with 47 additions and 1 deletions
29
.forgejo/workflows/pull_request.yaml
Normal file
29
.forgejo/workflows/pull_request.yaml
Normal 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
13
.pre-commit-config.yaml
Normal 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
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue