docs: add example

This commit is contained in:
devthejo 2023-11-15 17:49:46 +01:00
parent be5beb632f
commit b1c4d12cf1
Signed by: devthejo
GPG key ID: C04215C627711F5C

View file

@ -0,0 +1,26 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
on:
push:
branches:
- 'main'
tags:
- '**'
jobs:
build:
uses: devthefuture/actions/.forgejo/workflows/build.yaml@main
secrets: inherit
strategy:
matrix:
build:
- context: .
dockerfile: Dockerfile
with:
context: ${{ matrix.build.context }}
dockerfile: ${{ matrix.build.dockerfile }}
deploy:
needs: [build]
uses: devthefuture/actions/.forgejo/workflows/deploy.yaml@main
secrets: inherit
with:
env: "prod"