Files
grimmory/.github/workflows/ci-validate.yml
T
dependabot[bot] cc4efe5897 chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2)
Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-20 15:51:42 -05:00

64 lines
2.2 KiB
YAML

name: CI - Validate
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
jobs:
migration-check:
name: Flyway Migration Check
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
uses: ./.github/workflows/migrations-check.yml
with:
base_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
head_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
checkout_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
test-suite:
name: Test Suite
if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && (needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped') }}
needs: [migration-check]
uses: ./.github/workflows/test-suite.yml
permissions:
contents: read
checks: write
with:
checkout_ref: ${{ github.sha }}
packaging-smoke-test:
name: Packaging Smoke Test
if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && needs.test-suite.result == 'success' }}
needs: [migration-check, test-suite]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set Up QEMU for Multi-Arch Builds
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Build Runtime Image
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: false
build-args: |
APP_VERSION=ci-${{ github.sha }}
APP_REVISION=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max