Skip to content

Commit 60b508f

Browse files
authored
Merge pull request eclipse-tractusx#63 from FraunhoferISST/ci/static-puml
CI: Add workflow to create svg puml
2 parents d513583 + 91082a9 commit 60b508f

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/workflows/build-image-backend.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ env:
4141

4242
jobs:
4343
docker:
44+
if: github.repository_owner == 'eclipse-tractusx' # prevent running on forks
4445
runs-on: ubuntu-latest
4546
permissions:
4647
packages: write

.github/workflows/build-image-frontend.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ env:
4141

4242
jobs:
4343
docker:
44+
if: github.repository_owner == 'eclipse-tractusx' # prevent running on forks
4445
runs-on: ubuntu-latest
4546
permissions:
4647
packages: write
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
###############################################################
2+
# Copyright (c) 2023 Contributors to the Eclipse Foundation
3+
# Copyright (c) 2023 Volkswagen AG
4+
# Copyright (c) 2023 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
5+
# (represented by Fraunhofer ISST)
6+
#
7+
# See the NOTICE file(s) distributed with this work for additional
8+
# information regarding copyright ownership.
9+
#
10+
# This program and the accompanying materials are made available under the
11+
# terms of the Apache License, Version 2.0 which is available at
12+
# https://www.apache.org/licenses/LICENSE-2.0.
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17+
# License for the specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
###############################################################
22+
---
23+
24+
name: "Render static puml files"
25+
# Trigger as you want here in example each time a PlantUML file was updated on main branch
26+
on:
27+
push:
28+
branches:
29+
- 'main'
30+
paths:
31+
- '**/*.puml'
32+
jobs:
33+
render-images:
34+
uses: eclipse-tractusx/sig-infra/.github/workflows/reusable-generate-puml-svg.yml@main
35+
36+
store-images:
37+
runs-on: ubuntu-latest
38+
# 2nd job needs to wait for first job to finish
39+
needs: render-images
40+
steps:
41+
- name: checkout source repo
42+
uses: actions/checkout@v3
43+
- name: download generated svg file from job before
44+
uses: actions/download-artifact@v3
45+
id: download
46+
with:
47+
name: artifacts
48+
path: ${{ github.workspace }}
49+
# now you can handle the files in your desired way

0 commit comments

Comments
 (0)