@@ -120,13 +120,14 @@ jobs:
120120 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'
121121 runs-on : ubuntu-latest-16-cores
122122 steps :
123+ 124+
123125 - name : Setup Node.js
124126 uses : actions/setup-node@v4
125127 with :
126128 node-version : ' 22'
127129 cache : ' yarn'
128-
129- 130+ cache-dependency-path : yarn.lock
130131
131132 - id : yarn-cache
132133 name : Initialize Yarn Cache
@@ -163,8 +164,8 @@ jobs:
163164 - name : Build Docker image (no push)
164165 uses : docker/build-push-action@v5
165166 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
168169 # Build only, no push to registries
169170 push : false
170171 tags : |
@@ -193,6 +194,7 @@ jobs:
193194 with :
194195 node-version : ' 22'
195196 cache : ' yarn'
197+ cache-dependency-path : yarn.lock
196198
197199 - name : Install dependencies and build bundle
198200 run : |
@@ -215,8 +217,8 @@ jobs:
215217 if : needs.set-docker-tags.outputs.is_release == 'true'
216218 uses : docker/build-push-action@v5
217219 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
220222 push : true
221223 tags : |
222224 ghcr.io/${{ needs.set-docker-tags.outputs.ghcr_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -228,8 +230,8 @@ jobs:
228230 if : needs.set-docker-tags.outputs.is_release != 'true'
229231 uses : docker/build-push-action@v5
230232 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
233235 push : true
234236 tags : |
235237 ghcr.io/${{ needs.set-docker-tags.outputs.ghcr_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -250,6 +252,7 @@ jobs:
250252 with :
251253 node-version : ' 22'
252254 cache : ' yarn'
255+ cache-dependency-path : yarn.lock
253256
254257 - name : Install dependencies and build bundle
255258 run : |
@@ -275,8 +278,8 @@ jobs:
275278 if : needs.set-docker-tags.outputs.is_release == 'true'
276279 uses : docker/build-push-action@v5
277280 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
280283 push : true
281284 tags : |
282285 ${{ needs.set-docker-tags.outputs.dockerhub_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
@@ -288,8 +291,8 @@ jobs:
288291 if : needs.set-docker-tags.outputs.is_release != 'true'
289292 uses : docker/build-push-action@v5
290293 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
293296 push : true
294297 tags : |
295298 ${{ needs.set-docker-tags.outputs.dockerhub_image }}:${{ needs.set-docker-tags.outputs.tag_version }}
0 commit comments