From 521605ea6cd12d3bb622c621116078afe5eb80c3 Mon Sep 17 00:00:00 2001 From: "piotr.suwala" Date: Wed, 17 Apr 2024 19:13:57 +0200 Subject: [PATCH] hopefully it works --- .github/workflows/generate-tree.yaml | 27 +++++++++++++++++++++++++++ tree.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/generate-tree.yaml create mode 100644 tree.yaml diff --git a/.github/workflows/generate-tree.yaml b/.github/workflows/generate-tree.yaml new file mode 100644 index 0000000..5148a7e --- /dev/null +++ b/.github/workflows/generate-tree.yaml @@ -0,0 +1,27 @@ +name: Generate Tech Tree +on: + push: + branches: [ master ] +env: + TECH_TREE_DOCKER: ghcr.io/hspsh/tech-tree:issue-10-dockerfile +jobs: + generate-tech-tree: + name: Generate Tech Tree + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Run the build process with Docker + uses: addnab/docker-run-action@v3 + with: + image: ${{ TECH_TREE_DOCKER }} + options: -v ${{ github.workspace }}:/data + run: | + java -jar /app/app.jar /data/tree.yaml > /data/tree.svg + - name: FUCK + run: cat tree.svg + shell: bash + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: updated tree.svg + file_pattern: tree.svg diff --git a/tree.yaml b/tree.yaml new file mode 100644 index 0000000..5c9d515 --- /dev/null +++ b/tree.yaml @@ -0,0 +1,27 @@ +nodes: + - title: Tech Tree + state: done + - title: Outline + state: broken + - title: Onboarding + state: todo + requires: + - Tech Tree + - Outline + - title: Proces Listy Zakupowej + state: progress + requires: + - Tech Tree + - Outline + - title: Kubernetes + state: broken + - title: FluxCD + state: broken + requires: + - Kubernetes + - title: Syncronium + state: broken + link: http://example.com + docs: https://github.com/hspsh/syncronium + requires: + - FluxCD \ No newline at end of file