43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
pre-run:
|
|
runs-on: imagefactory-latest
|
|
steps:
|
|
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
|
|
with:
|
|
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
|
|
status: "Started"
|
|
init: true
|
|
build:
|
|
needs: [pre-run]
|
|
runs-on: imagefactory-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.forgejo/workflows/build-images-action
|
|
- uses: ./.forgejo/workflows/push-images
|
|
with:
|
|
image-prefix: sesame
|
|
registry-user: ${{ secrets.REGISTRY_USER }}
|
|
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
|
registry-endpoint: ${{ vars.REGISTRY_ENDPOINT }}
|
|
post-run:
|
|
runs-on: imagefactory-latest
|
|
needs: [build]
|
|
steps:
|
|
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
|
|
if: ${{always() && success()}}
|
|
with:
|
|
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
|
|
status: "Success"
|
|
variant: "success"
|
|
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
|
|
if: ${{always() && failure()}}
|
|
with:
|
|
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
|
|
status: "Failure"
|
|
variant: "failure"
|