Notifications and workflow triggers.
Validate DAGs / DAGU DAG(s) Validation (push) Failing after 1m0s
Validate DAGs / DAGU DAG(s) Validation (push) Failing after 1m0s
This commit is contained in:
@@ -2,11 +2,12 @@ name: Gitea Branch PR & Ansible Deployment
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows: [Home Assistant Config Check, Validate DAGs]
|
||||
types:
|
||||
- completed
|
||||
branches: main
|
||||
# workflow_run will be supported in Gitea 1.25.x
|
||||
# workflow_run:
|
||||
# workflows: [Home Assistant Config Check, Validate DAGs]
|
||||
# types:
|
||||
# - completed
|
||||
# branches: main
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'main'
|
||||
@@ -16,6 +17,7 @@ on:
|
||||
- '!app-configs/rinoa/dagu/dags/**'
|
||||
|
||||
env:
|
||||
TEA_VERSION: '0.10.1'
|
||||
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
|
||||
VAULT_TOKEN: ${{ secrets.VAULT_GITEA_TOKEN }}
|
||||
|
||||
@@ -33,9 +35,9 @@ jobs:
|
||||
- name: Install tea CLI
|
||||
uses: supplypike/setup-bin@v4
|
||||
with:
|
||||
uri: 'https://gitea.com/gitea/tea/releases/download/v0.9.2/tea-0.9.2-linux-amd64'
|
||||
uri: 'https://gitea.com/gitea/tea/releases/download/v${{ env.TEA_VERSION }}/tea-${{ env.TEA_VERSION }}-linux-amd64'
|
||||
name: 'tea'
|
||||
version: '0.9.2'
|
||||
version: ${{ env.TEA_VERSION }}
|
||||
|
||||
- name: Gotify Notification
|
||||
uses: eikendev/gotify-action@master
|
||||
@@ -96,13 +98,21 @@ jobs:
|
||||
with:
|
||||
version: "11.4.0"
|
||||
|
||||
- name: Set up Vault CLI
|
||||
uses: eLco/setup-vault@v1
|
||||
with:
|
||||
vault_version: 1.18.0
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install Vault & hvac
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y unzip
|
||||
curl -fsSL https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip -o vault.zip
|
||||
unzip vault.zip
|
||||
sudo mv vault /usr/local/bin/
|
||||
pip install hvac
|
||||
run: pip install hvac
|
||||
|
||||
- name: Gotify Notification
|
||||
uses: eikendev/gotify-action@master
|
||||
@@ -144,9 +154,9 @@ jobs:
|
||||
- name: Install tea
|
||||
uses: supplypike/setup-bin@v4
|
||||
with:
|
||||
uri: 'https://gitea.com/gitea/tea/releases/download/v0.9.2/tea-0.9.2-linux-amd64'
|
||||
uri: 'https://gitea.com/gitea/tea/releases/download/v${{ env.TEA_VERSION }}/tea-${{ env.TEA_VERSION }}-linux-amd64'
|
||||
name: 'tea'
|
||||
version: '0.9.2'
|
||||
version: ${{ env.TEA_VERSION }}
|
||||
|
||||
- name: PR Merge
|
||||
id: pr_merge
|
||||
@@ -181,18 +191,34 @@ jobs:
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Cache Ansible Galaxy Collections
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: collections
|
||||
key: ${{ runner.os }}-ansible-${{ hashFiles('./collections/requirements.yml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-ansible-
|
||||
|
||||
- name: Install Ansible
|
||||
uses: alex-oleshkevich/setup-ansible@v1.0.1
|
||||
with:
|
||||
version: "11.4.0"
|
||||
|
||||
- name: Set up Vault CLI
|
||||
uses: eLco/setup-vault@v1
|
||||
with:
|
||||
vault_version: 1.18.0
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install Vault & hvac
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y unzip
|
||||
curl -fsSL https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip -o vault.zip
|
||||
unzip vault.zip
|
||||
sudo mv vault /usr/local/bin/
|
||||
pip install hvac
|
||||
run: pip install hvac
|
||||
|
||||
- name: Gotify Notification
|
||||
uses: eikendev/gotify-action@master
|
||||
|
||||
Reference in New Issue
Block a user