@@ -120,13 +120,14 @@ jobs:
120
120
if : (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/satp-dev' || github.ref == 'refs/heads/satp-stg')) || (github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'satp-dev' || github.base_ref == 'satp-stg')) || github.event_name == 'workflow_dispatch'
121
121
runs-on : ubuntu-latest-16-cores
122
122
steps :
123
+
124
+
123
125
- name : Setup Node.js
124
126
uses : actions/setup-node@v4
125
127
with :
126
128
node-version : ' 22'
127
129
cache : ' yarn'
128
-
129
-
130
+ cache-dependency-path : yarn.lock
130
131
131
132
- id : yarn-cache
132
133
name : Initialize Yarn Cache
@@ -163,8 +164,8 @@ jobs:
163
164
- name : Build Docker image (no push)
164
165
uses : docker/build-push-action@v5
165
166
with :
166
- context : ./
167
- file : ./packages/cactus-plugin-satp-hermes/ satp-hermes-gateway.Dockerfile
167
+ context : ./packages/cactus-plugin-satp-hermes
168
+ file : satp-hermes-gateway.Dockerfile
168
169
# Build only, no push to registries
169
170
push : false
170
171
tags : |
@@ -193,6 +194,7 @@ jobs:
193
194
with :
194
195
node-version : ' 22'
195
196
cache : ' yarn'
197
+ cache-dependency-path : yarn.lock
196
198
197
199
- name : Install dependencies and build bundle
198
200
run : |
@@ -215,8 +217,8 @@ jobs:
215
217
if : needs.set-docker-tags.outputs.is_release == 'true'
216
218
uses : docker/build-push-action@v5
217
219
with :
218
- context : ./
219
- file : ./packages/cactus-plugin-satp-hermes/ satp-hermes-gateway.Dockerfile
220
+ context : ./packages/cactus-plugin-satp-hermes
221
+ file : satp-hermes-gateway.Dockerfile
220
222
push : true
221
223
tags : |
222
224
ghcr.io/${{ needs.set-docker-tags.outputs.ghcr_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -228,8 +230,8 @@ jobs:
228
230
if : needs.set-docker-tags.outputs.is_release != 'true'
229
231
uses : docker/build-push-action@v5
230
232
with :
231
- context : ./
232
- file : ./packages/cactus-plugin-satp-hermes/ satp-hermes-gateway.Dockerfile
233
+ context : ./packages/cactus-plugin-satp-hermes
234
+ file : satp-hermes-gateway.Dockerfile
233
235
push : true
234
236
tags : |
235
237
ghcr.io/${{ needs.set-docker-tags.outputs.ghcr_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -250,6 +252,7 @@ jobs:
250
252
with :
251
253
node-version : ' 22'
252
254
cache : ' yarn'
255
+ cache-dependency-path : yarn.lock
253
256
254
257
- name : Install dependencies and build bundle
255
258
run : |
@@ -275,8 +278,8 @@ jobs:
275
278
if : needs.set-docker-tags.outputs.is_release == 'true'
276
279
uses : docker/build-push-action@v5
277
280
with :
278
- context : ./
279
- file : ./packages/cactus-plugin-satp-hermes/ satp-hermes-gateway.Dockerfile
281
+ context : ./packages/cactus-plugin-satp-hermes
282
+ file : satp-hermes-gateway.Dockerfile
280
283
push : true
281
284
tags : |
282
285
${{ needs.set-docker-tags.outputs.dockerhub_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -288,8 +291,8 @@ jobs:
288
291
if : needs.set-docker-tags.outputs.is_release != 'true'
289
292
uses : docker/build-push-action@v5
290
293
with :
291
- context : ./
292
- file : ./packages/cactus-plugin-satp-hermes/ satp-hermes-gateway.Dockerfile
294
+ context : ./packages/cactus-plugin-satp-hermes
295
+ file : satp-hermes-gateway.Dockerfile
293
296
push : true
294
297
tags : |
295
298
${{ needs.set-docker-tags.outputs.dockerhub_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
0 commit comments