sesame/.forgejo/workflows/build-images.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

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:
2024-11-08 00:54:05 +00:00
- uses: actions/checkout@v4
2024-11-08 03:38:49 +00:00
- name: Build container images
uses: https://forge.karnov.club/spadinastan/build-container-images-action@main
2024-11-08 03:34:19 +00:00
with:
service-definition: ./service.yml
2024-11-08 03:38:49 +00:00
- name: Push container images
uses: https://forge.karnov.club/spadinastan/push-container-images-action@main
2024-11-08 00:54:05 +00:00
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"