Init test workflow to hands-on how we can get the list of changed stacks

This commit is contained in:
Joey Hafner 2024-08-23 18:56:43 -07:00
parent 79af6f5c2d
commit 37370ec458
No known key found for this signature in database

View File

@ -0,0 +1,52 @@
name: Stacks CICD
run-name: ${{ gitea.actor }} Building
on:
push:
paths:
- 'homelab/stacks/**'
workflow_dispatch:
jobs:
Setup:
runs-on: fighter
outputs:
stacks: ${{ steps.stackslist.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 2
sparse-checkout: 'homelab/stacks/'
- name: Get changed stacks
run: git diff --name-only ${{ gitea.event.before }} ${{ gitea.event.after }}
# Build:
# runs-on: fighter
# outputs:
# matrix: ${{ steps.stackslist.outputs.value }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# fetch-depth: 2
# sparse-checkout: 'homelab/stacks/'
# - name: Get changed Stacks
# run: git diff --name-only ${{ gitea.event.before }} ${{ gitea.event.after }}
# - id: stackslist
# run: |
# Deploy:
# runs-on: fighter
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# fetch-depth: 2
# sparse-checkout: 'homelab/stacks/'
# - name: Get changed Stacks
# run: git diff --name-only ${{ gitea.event.before }} ${{ gitea.event.after }}