File tree 6 files changed +1098
-944
lines changed 6 files changed +1098
-944
lines changed Original file line number Diff line number Diff line change 24
24
- uses : actions/setup-node@v3
25
25
with :
26
26
node-version : 18
27
- # TODO build:web fails currently, but it'd be good to make that work when possible and then add it here.
28
27
- run : yarn
29
28
- run : yarn build:jsonschema
30
29
- run : yarn build:ts
30
+
31
+ build-docker :
32
+ name : Build Docker Image
33
+ runs-on : ubuntu-latest
34
+ env :
35
+ # Only push if this is develop, otherwise we just want to build
36
+ # On a PR github.ref is the target branch, so don't push for that either
37
+ PUSH : ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
38
+
39
+ steps :
40
+ - name : Check out
41
+ uses : actions/checkout@v2
42
+
43
+ - name : Login to GHCR
44
+ uses : docker/login-action@v3
45
+ if : ${{ env.PUSH == 'true' }}
46
+ with :
47
+ registry : ghcr.io
48
+ username : ${{ github.actor }}
49
+ password : ${{ secrets.GITHUB_TOKEN }}
50
+
51
+ - name : Build image
52
+ uses : docker/build-push-action@v2
53
+ with :
54
+ context : .
55
+ file : ./Dockerfile
56
+ platforms : ${{ env.PLATFORMS }}
57
+ push : ${{ env.PUSH }}
58
+ tags : |
59
+ ghcr.io/matrix-org/conference-bot:latest
60
+ ghcr.io/matrix-org/conference-bot:${{ github.sha }}
Original file line number Diff line number Diff line change 38
38
"moment" : " ^2.29.4" ,
39
39
"node-fetch" : " ^2.6.1" ,
40
40
"pg" : " ^8.9.0" ,
41
+ "postcss-preset-env" : " ^6.7.0" ,
42
+ "querystring-es3" : " ^0.2.1" ,
41
43
"prom-client" : " ^15.0.0" ,
42
44
"qs" : " ^6.11.2" ,
43
45
"rfc4648" : " ^1.4.0" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
17
17
import { Response , Request } from "express" ;
18
18
import template from "./utils/template"
19
19
import config from "./config" ;
20
- import { base32 } from " rfc4648" ;
20
+ const { base32 } = require ( ' rfc4648' ) ;
21
21
import { LogService , MatrixClient } from "matrix-bot-sdk" ;
22
22
import { sha256 } from "./utils" ;
23
23
import * as dns from "dns" ;
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"experimentalDecorators" : true ,
5
5
"emitDecoratorMetadata" : true ,
6
+ "lib" : [" DOM" , " es2022" ],
6
7
"noImplicitAny" : false ,
7
8
"strict" : true ,
8
9
"strictPropertyInitialization" : false ,
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ module.exports = {
50
50
} ,
51
51
resolve : {
52
52
extensions : [ '.ts' , '.js' ] ,
53
+ fallback : { "querystring" : require . resolve ( "querystring-es3" ) }
53
54
} ,
54
55
plugins : [
55
56
new CleanWebpackPlugin ( { cleanStaleWebpackAssets : false } ) ,
You can’t perform that action at this time.
0 commit comments