-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/milanm/architecture-docs
- Loading branch information
Showing
3 changed files
with
598 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Deploy Documentation to Confluence | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Generate PlantUML diagrams | ||
run: docker-compose run --rm generate-diagrams | ||
|
||
- name: Generate HTML documentation | ||
run: docker-compose run --rm generate-docs | ||
|
||
- name: Pull doctoolchain | ||
run: docker pull doctoolchain/doctoolchain:v3.3.1 | ||
|
||
- name: Setup docToolChain wrapper | ||
run: | | ||
curl -Lo dtcw https://doctoolchain.org/dtcw | ||
chmod +x dtcw | ||
./dtcw tasks --group doctoolchain | ||
- name: Deploy to Confluence | ||
env: | ||
CONFLUENCE_USERNAME: ${{ secrets.CONFLUENCE_USERNAME }} | ||
CONFLUENCE_PASSWORD: ${{ secrets.CONFLUENCE_PASSWORD }} | ||
run: | | ||
sudo ./dtcw publishToConfluence -PconfluenceUser="$CONFLUENCE_USERNAME" -PconfluencePass="$CONFLUENCE_PASSWORD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build | ||
.gradle | ||
*dtcw* | ||
.puml | ||
src/**/structurizr/*.json | ||
src/**/structurizr/.structurizr |
Oops, something went wrong.