ci-scala/.forgejo/workflows/pull_request.yaml
Pat Garrity e1503bd072
Some checks failed
/ Build and Test CI Image (pull_request) Failing after 6s
Minor pump for diagnostic information.
2024-03-24 10:13:32 -05:00

30 lines
735 B
YAML

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: |
echo "Building and pushing pre-release: $IMAGE_TAG"
podman build --tag "$IMAGE_TAG" .
podman push "$IMAGE_TAG"