Skip to content

Commit d798864

Browse files
committed
fix: strip workflows of bundling
1 parent cef1998 commit d798864

11 files changed

Lines changed: 4 additions & 40 deletions

.github/workflows/analytics.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/api-gateway.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/auth.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/common-docker-image.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
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
@@ -33,19 +30,6 @@ jobs:
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:
@@ -55,14 +39,6 @@ jobs:
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:
@@ -93,8 +69,8 @@ jobs:
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: |

.github/workflows/common-server-application.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
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
@@ -39,7 +36,6 @@ jobs:
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:

.github/workflows/files.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/revisions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/scheduler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/syncing-server.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

.github/workflows/websockets.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

0 commit comments

Comments
 (0)