-
-
Notifications
You must be signed in to change notification settings - Fork 11
111 lines (86 loc) · 2.41 KB
/
drawio-export.yaml
File metadata and controls
111 lines (86 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
name: Build And Release
on:
pull_request:
push:
branches:
- v4.x
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: build-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
steps:
# Setup
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
- uses: rlespinasse/github-slug-action@v5
- name: Build docker image
run: make build
shell: bash
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}
- name: Setup CI for test
run: make test-ci-setup
shell: bash
- name: Test docker image
run: make test-ci
shell: bash
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}
- name: Test docker image // Store output logs
uses: actions/upload-artifact@v7
with:
name: test-docker-image-logs
path: "tests/output/*.log"
if: ${{ always() }}
- name: Test docker image // Store output files
uses: actions/upload-artifact@v7
with:
name: test-docker-image-files
path: |
tests/data
!tests/data/*.drawio
!tests/data/*/*.drawio
if: ${{ always() }}
build-multiarch:
runs-on: ubuntu-latest
concurrency:
group: build-multiarch-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v6
- uses: rlespinasse/github-slug-action@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
with:
platforms: "arm64,arm"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build docker image
run: make build-multiarch
shell: bash
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}
release:
runs-on: ubuntu-latest
needs:
- build
- build-multiarch
permissions:
contents: write
issues: write
id-token: write
packages: write
concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
steps:
- uses: actions/checkout@v6
- name: Release this docker image
uses: rlespinasse/release-that@v1
with:
github-token: ${{ secrets.GH_TOKEN }}