host-forgejo-runner/.forgejo/workflows/Deploy Ansible Pipeline.yml
GregoryDosh 540d666041
All checks were successful
Deploy Ansible Pipeline / Deploy Ansible Pipeline (push) Successful in 8m50s
fix: add STEP_CA_JWK_PASSWORD to common setup
2025-07-29 11:11:03 -05:00

49 lines
1.8 KiB
YAML

# git.auengun.net/homelab/host-forgejo-runner
# Copyright (C) 2024 GregoryDosh
---
name: Deploy Ansible Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
deploy-ansible-pipeline:
name: Deploy Ansible Pipeline
# This image may look generic enough, but it's an image
# that is continuously changing and managed specifically for
# the homelab required alterations in the internal Forgejo repo.
# See:
# - https://git.auengun.net/homelab/image-forgejo-runner
runs-on: ubuntu-act-latest
steps:
# Before I started building common utilities into my base image above
# I used a common setup action to handle bootstrapping the ephemeral
# environments into my homelab so that I could SSH/SCP around or even
# have the ability to talk to the https internal sites without SSL errors.
#
# This is still needed for when I override the `runs-on` above for special
# circumstances, but overall this combines a lot of the common environment
# setup tasks I needed along with the real task of cloning the code into
# the local workspace while navigating the PKI/SSL Based auth flows.
- name: Clone Repo into Workspace
uses: https://git.auengun.net/homelab/action-common-setup@3e92f643023a84a6b2bdc495a271846c5e98c949 # 1.5.0
with:
STEP_CA_JWK_PASSWORD: "${{ secrets.STEP_CA_JWK_PASSWORD }}"
- name: Pull Image into Homelab Cache
shell: bash
run: make pull-image
- name: Run Ansible Pipeline
if: ${{ github.ref == 'refs/heads/main' }}
env:
INFISICAL_CLIENT_ID: ${{ secrets.INFISICAL_CLIENT_ID }}
INFISICAL_CLIENT_SECRET: ${{ secrets.INFISICAL_CLIENT_SECRET }}
INFISICAL_PROJECT_ID: ${{ secrets.INFISICAL_PROJECT_ID }}
shell: bash
run: make ansible-pipeline