-
Notifications
You must be signed in to change notification settings - Fork 0
171 lines (154 loc) · 4.35 KB
/
default.yml
File metadata and controls
171 lines (154 loc) · 4.35 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
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
name: Build & deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
REGISTRY: ghcr.io
jobs:
build-docs:
name: Build docs
runs-on: ubuntu-latest
env:
PUBLIC_URL: /solid-web-monetization
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
working-directory: ./.docs
build-accountant:
name: Build accountant
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install accountant yarn packages
working-directory: ./solid-accountant
run: yarn
- name: Build accountant project
working-directory: ./solid-accountant
run: yarn run build
- name: Upload production-ready build files
uses: actions/upload-artifact@v2
with:
name: accountant-production-files
path: ./solid-accountant/dist
build-wmp:
name: Build WMP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16 for deploy to GitHub Container Registry
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '16'
- name: Build docker with jib
run: mvn package
working-directory: ./solid-wmp
env:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
docker-accountant:
name: Dockerize accountant
needs: [build-accountant]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: accountant-production-files
path: ./solid-accountant/dist
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta-wallet
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/accountant
tags: latest
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./solid-accountant
file: ./solid-accountant/docker/Dockerfile
push: true
tags: ${{ steps.meta-wallet.outputs.tags }}
build-microstore:
name: Build microstore
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install microstore yarn packages
working-directory: ./solid-microstore
run: yarn
- name: Build microstore project
working-directory: ./solid-microstore
run: yarn run build
- name: Upload production-ready build files
uses: actions/upload-artifact@v2
with:
name: microstore-production-files
path: ./solid-microstore/dist
docker-microstore:
name: Dockerize microstore
needs: [build-microstore]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: microstore-production-files
path: ./solid-microstore/dist
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta-store
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/microstore
tags: latest
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./solid-microstore
file: ./solid-microstore/docker/Dockerfile
push: true
tags: ${{ steps.meta-store.outputs.tags }}