-
Notifications
You must be signed in to change notification settings - Fork 15
179 lines (155 loc) · 6.82 KB
/
build-orthanc-share.yml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: build-orthanc-share
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build-orthanc-share:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
- name: Run python tests
run: |
pip install -r sources/requirements.txt
./sources/tests/run-tests.sh
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker (orthanc-nginx)
id: meta-orthanc-nginx
uses: docker/metadata-action@v5
with:
images: orthancteam/orthanc-nginx
labels: |
org.opencontainers.image.title=orthanc-nginx
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Extract metadata (tags, labels) for Docker (orthanc-auth-service)
id: meta-orthanc-auth-service
uses: docker/metadata-action@v5
with:
images: orthancteam/orthanc-auth-service
labels: |
org.opencontainers.image.title=orthanc-auth-service
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Extract metadata (tags, labels) for Docker (meddream-viewer)
id: meta-meddream-viewer
uses: docker/metadata-action@v5
with:
images: orthancteam/meddream-viewer
labels: |
org.opencontainers.image.title=meddream-viewer
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Extract metadata (tags, labels) for Docker (meddream-token-service)
id: meta-meddream-token-service
uses: docker/metadata-action@v5
with:
images: orthancteam/meddream-token-service
labels: |
org.opencontainers.image.title=meddream-token-service
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Extract metadata (tags, labels) for Docker (orthanc-keycloak)
id: meta-orthanc-keycloak
uses: docker/metadata-action@v5
with:
images: orthancteam/orthanc-keycloak
labels: |
org.opencontainers.image.title=orthanc-keycloak
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Extract metadata (tags, labels) for Docker (ohif-v3)
id: meta-ohif-v3
uses: docker/metadata-action@v5
with:
images: orthancteam/ohif-v3
labels: |
org.opencontainers.image.title=ohif-v3
org.opencontainers.image.vendor=Orthanc Team SRL
- name: Build and push orthanc-nginx Docker image
uses: docker/build-push-action@v5
with:
context: sources/
file: sources/nginx/Dockerfile.orthanc-nginx
push: true
tags: ${{ steps.meta-orthanc-nginx.outputs.tags }}
labels: ${{ steps.meta-orthanc-nginx.outputs.labels }}
- name: Build and push orthanc-auth-service Docker image
uses: docker/build-push-action@v5
with:
context: sources/
file: sources/Dockerfile.orthanc-auth-service
push: true
tags: ${{ steps.meta-orthanc-auth-service.outputs.tags }}
labels: ${{ steps.meta-orthanc-auth-service.outputs.labels }}
- name: Build and push meddream-viewer Docker image
uses: docker/build-push-action@v5
with:
context: sources/meddream/viewer
file: sources/meddream/viewer/Dockerfile.meddream-viewer
push: true
tags: ${{ steps.meta-meddream-viewer.outputs.tags }}
labels: ${{ steps.meta-meddream-viewer.outputs.labels }}
- name: Build and push meddream-token-service Docker image
uses: docker/build-push-action@v5
with:
context: sources/meddream/token-service
file: sources/meddream/token-service/Dockerfile.meddream-token-service
push: true
tags: ${{ steps.meta-meddream-token-service.outputs.tags }}
labels: ${{ steps.meta-meddream-token-service.outputs.labels }}
- name: Build and push orthanc-keycloak Docker image
uses: docker/build-push-action@v5
with:
context: sources/
file: sources/keycloak/Dockerfile.orthanc-keycloak
push: true
tags: ${{ steps.meta-orthanc-keycloak.outputs.tags }}
labels: ${{ steps.meta-orthanc-keycloak.outputs.labels }}
- name: Build and push ohif-v3 Docker image
uses: docker/build-push-action@v5
with:
context: sources/ohif/
file: sources/ohif/Dockerfile.ohif-v3
push: true
tags: ${{ steps.meta-ohif-v3.outputs.tags }}
labels: ${{ steps.meta-ohif-v3.outputs.labels }}
- name: Docker Hub Description (orthanc-nginx)
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: orthancteam/orthanc-nginx
short-description: Web service to run in front of Orthanc to handle sharing of studies & admin access
readme-filepath: sources/README-dockerhub-orthanc-nginx.md
- name: Docker Hub Description (orthanc-auth-service)
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: orthancteam/orthanc-auth-service
short-description: Web service to run next to orthanc to handle authentication, authorization and sharing of studies
readme-filepath: sources/README-dockerhub-orthanc-auth-service.md
- name: Docker Hub Description (orthanc-keycloak)
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: orthancteam/orthanc-keycloak
short-description: Web service to run in front of Orthanc to handle users/roles management
readme-filepath: sources/README-dockerhub-orthanc-keycloak.md
- name: Docker Hub Description (ohif-v3)
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: orthancteam/ohif-v3
short-description: Web service to run next to Orthanc to host the OHIF viewer
readme-filepath: sources/README-dockerhub-ohif-v3.md