All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 3s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 22s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 10s
- haven-notify.yaml: replace hand-rolled build+deploy (broken docker/build-push-action remote-builder path) with pipeline-actions build-and-push + deploy-restart; full Gitea uses: URLs; ubuntu-amd64. - main.yaml / test-automated-nfs-backup.yaml: runner label ubuntu-latest -> ubuntu-amd64. - haven-notify/README.md: point to infra/haven-notify.yaml in the haven repo; fix secret name to discord-webhook/HAVEN_WEBHOOK_URL.
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Haven Notify Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'haven-notify/**'
|
|
- '.gitea/workflows/**'
|
|
workflow_dispatch: {}
|
|
|
|
env:
|
|
IMAGE: git.ivanch.me/ivanch/haven-notify
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Haven Notify Image
|
|
runs-on: ubuntu-amd64
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and Push Multi-Arch Image
|
|
uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
|
|
with:
|
|
image: ${{ env.IMAGE }}
|
|
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}
|
|
build_context: haven-notify
|
|
|
|
deploy:
|
|
name: Deploy Haven Notify (internal)
|
|
runs-on: ubuntu-amd64
|
|
needs: build
|
|
steps:
|
|
- name: Rollout Restart Haven Notify
|
|
uses: https://git.ivanch.me/ivanch/pipeline-actions/deploy-restart@main
|
|
with:
|
|
kube_config: ${{ secrets.KUBE_CONFIG }}
|
|
deployment_name: haven-notify
|
|
namespace: default
|