File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : analytics
19- workspace_name : " @standardnotes/analytics"
2019 deploy_web : false
2120 package_path : packages/analytics
2221 secrets : inherit
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : api-gateway
19- workspace_name : " @standardnotes/api-gateway"
2019 deploy_worker : false
2120 package_path : packages/api-gateway
2221 secrets : inherit
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : auth
19- workspace_name : " @standardnotes/auth-server"
2019 package_path : packages/auth
2120 secrets : inherit
2221
Original file line number Diff line number Diff line change 99 package_path :
1010 required : true
1111 type : string
12- workspace_name :
13- required : true
14- type : string
1512 secrets :
1613 DOCKER_USERNAME :
1714 required : true
3330 with :
3431 python-version : ' 3.11'
3532
36- - name : Create Bundle Dir
37- id : bundle-dir
38- run : echo "temp_dir=$(mktemp -d -t ${{ inputs.service_name }}-${{ github.sha }}-XXXXXXX)" >> $GITHUB_OUTPUT
39-
40- - name : Cache build
41- id : cache-build
42- uses : actions/cache@v3
43- with :
44- path : |
45- packages/**/dist
46- ${{ steps.bundle-dir.outputs.temp_dir }}
47- key : ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }}
48-
4933 - name : Set up Node
5034 uses : actions/setup-node@v3
5135 with :
5539 - name : Install dependencies
5640 run : yarn install --immutable
5741
58- - name : Build
59- if : steps.cache-build.outputs.cache-hit != 'true'
60- run : yarn build ${{ inputs.package_path }}
61-
62- - name : Bundle
63- if : steps.cache-build.outputs.cache-hit != 'true'
64- run : yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ steps.bundle-dir.outputs.temp_dir }}
65-
6642 - name : Login to Docker Hub
6743 uses : docker/login-action@v2
6844 with :
9369 uses : docker/build-push-action@v4
9470 with :
9571 builder : ${{ steps.buildx.outputs.name }}
96- context : ${{ steps.bundle-dir.outputs.temp_dir }}
97- file : ${{ steps.bundle-dir.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile
72+ context : .
73+ file : ${{ inputs.package_path }}/Dockerfile
9874 platforms : linux/amd64,linux/arm64
9975 push : true
10076 tags : |
Original file line number Diff line number Diff line change 66 service_name :
77 required : true
88 type : string
9- workspace_name :
10- required : true
11- type : string
129 deploy_web :
1310 required : false
1411 default : true
3936 with :
4037 service_name : ${{ inputs.service_name }}
4138 package_path : ${{ inputs.package_path }}
42- workspace_name : ${{ inputs.workspace_name }}
4339 secrets : inherit
4440
4541 deploy-web :
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : files
19- workspace_name : " @standardnotes/files-server"
2019 package_path : packages/files
2120 secrets : inherit
2221
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : revisions
19- workspace_name : " @standardnotes/revisions-server"
2019 package_path : packages/revisions
2120 secrets : inherit
2221
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : scheduler
19- workspace_name : " @standardnotes/scheduler-server"
2019 deploy_web : false
2120 package_path : packages/scheduler
2221 secrets : inherit
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : syncing-server-js
19- workspace_name : " @standardnotes/syncing-server"
2019 package_path : packages/syncing-server
2120 secrets : inherit
2221
Original file line number Diff line number Diff line change 1616 uses : standardnotes/server/.github/workflows/common-server-application.yml@main
1717 with :
1818 service_name : websockets
19- workspace_name : " @standardnotes/websockets-server"
2019 package_path : packages/websockets
2120 secrets : inherit
2221
You can’t perform that action at this time.
0 commit comments