docs: add example
This commit is contained in:
parent
be5beb632f
commit
b1c4d12cf1
1 changed files with 26 additions and 0 deletions
26
docs/examples/ci-cd.workflow.yaml
Normal file
26
docs/examples/ci-cd.workflow.yaml
Normal 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"
|
Loading…
Add table
Reference in a new issue