diff --git a/docs/examples/ci-cd.workflow.yaml b/docs/examples/ci-cd.workflow.yaml new file mode 100644 index 0000000..d160dd9 --- /dev/null +++ b/docs/examples/ci-cd.workflow.yaml @@ -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" \ No newline at end of file