Commit 738ba917 authored by Ruben ten Hove's avatar Ruben ten Hove Committed by Federico Falconieri
Browse files

feat: drawio export to be used in markdown

parent 7586ec37
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@ include:

  - local: "other/badge.yml"

  - local: "docs/drawio.yml"

  - local: "docker/kaniko.yml"
  - local: "docker/anchore/grype.yml"

+4 −0
Original line number Diff line number Diff line
@@ -107,3 +107,7 @@ include:
# Contributing

See [`CONTRIBUTING.md`](CONTRIBUTING.md)

# We even do drawio

![](/../-/jobs/artifacts/master/raw/templates_tests/other/drawio.png?job=docs%3Adrawio)
+23 −7
Original line number Diff line number Diff line
---
# You can access the resulting images by adding the
# following to a README.md:
# ![description](/../-/jobs/artifacts/master/raw/filename.png?job=docs%3Adrawio)
# Replace filename with the name of the .drawio file, and the extension
# if you changed the FORMAT variable.
# The ref (currently master) is hardcoded, so the README.md render will only
# show what is built on that ref.

# You can have multiple files (even in subdirectories), and the README.md
# can be in any directory. Just make sure the path is correct. For example:
# `dir/subdir/dia.drawio is shown using ![description](/../-/jobs/artifacts/master/raw/dir/subdir/dia.png?job=docs%3Adrawio)

docs:drawio:
  extends: .auto-commit-setup
  image:
    name: rlespinasse/drawio-export
    entrypoint: [""]
  stage: build
  variables:
    EXTRA_ARGS: ""
    FORMAT: "png"
  script:
    - docker run -v $(pwd):/data rlespinasse/drawio-export -E jpeg -s 2
    - git add .
    - git commit -m 'exported jpeg from drawio diagram [skip ci]'
    - git push --set-upstream origin master
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - /opt/drawio-desktop/entrypoint.sh --remove-page-suffix --output . --format ${FORMAT} ${EXTRA_ARGS}
  artifacts:
    paths:
      - "**/*.$FORMAT"
+1 −0
Original line number Diff line number Diff line
<mxfile host="Electron" modified="2021-04-29T10:59:46.365Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/14.5.1 Chrome/89.0.4389.82 Electron/12.0.1 Safari/537.36" etag="8llR8qIqSeND0wDHtecK" version="14.5.1" type="device"><diagram id="lvdSZ3aha3Joa5C34HGY" name="Page-1">1VZNc9owEP01HNPxBzjOMUDaHNI2MxwKvWSEtbbVyF6PWAPur69kZGzjkElmkkx6Ae3TrqR9u0/WyJ9l+2+KFel35CBHnsP3I38+8jzXCa/0n0GqA3IVjA9AogS3Ti2wEH+hibRoKThseo6EKEkUfTDCPIeIehhTCnd9txhlf9eCJTAAFhGTQ/SX4JQe0NC7bPFbEEna7OwGNuGMNc42k03KOO46kH8z8mcKkQ6jbD8DachreDnEfT0zezyYgpxeEjD/8XApU/7g8N/sYluss2KpLmwaWyZLm7D91eelqiEBuObEmqgoxQRzJm9adKqwzDmYnRxttT53iIUGXQ3+AaLKFpiVhBpKKZN2FvaClp3xyiz1ZWKt+d6uXBtVY+SkqmXraMxVd64Nq61e3D0okQGBsmCMOdnTeW5j25yNvXkEitLGaGppjANdhqOzlbHQBksVwTPlaDqcqQToGb/g2D9aeIA6D1XpOAWSkdj2z8GsApKjX9skemD75BU94w56ZqXzqrcvcNA7bWcYrnapIFgUrGZhp6+MfhecJzkWUs5QoqpX9TmDMI6MEyl8hM5MEIWwjo9l2YIi2D9fmCGRNsB3rHbt5TUeW3vXXgVuo++0cw0EzjtxPxnq1Zv+f3rtqbUV7xm9fgppei+U5pmO+hhpeoP2+FkrkyAr9P76Q/pB8pxAyMdPyTP01n4QvI08Xf+zyTMY8H/LiqKq3ydcf2pO2dccFmZYZvI6IsPR1DAi9Pvjjq1B3uNGkMBcu6yRCLOOw7UUiZkgPKkSliRFrklvXkTOqzRzUso4jr3oyZuWB+tg8kalHIcnpbwaltJ/m0pqs3101XOdp6t/8w8=</diagram></mxfile>