Skip to content

Commit a14f896

Browse files
committed
ci(satp-hermes): cache yarn.lock
Signed-off-by: Rafael Belchior <[email protected]>
1 parent 33ad007 commit a14f896

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/satp-hermes-docker.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
- uses: actions/[email protected]
124+
123125
- name: Setup Node.js
124126
uses: actions/setup-node@v4
125127
with:
126128
node-version: '22'
127129
cache: 'yarn'
128-
129-
- uses: actions/[email protected]
130+
cache-dependency-path: yarn.lock
130131

131132
- id: yarn-cache
132133
name: Initialize Yarn Cache
@@ -163,7 +164,7 @@ jobs:
163164
- name: Build Docker image (no push)
164165
uses: docker/build-push-action@v5
165166
with:
166-
context: ./
167+
context: ./packages/cactus-plugin-satp-hermes
167168
file: ./packages/cactus-plugin-satp-hermes/satp-hermes-gateway.Dockerfile
168169
# Build only, no push to registries
169170
push: false
@@ -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,7 +217,7 @@ jobs:
215217
if: needs.set-docker-tags.outputs.is_release == 'true'
216218
uses: docker/build-push-action@v5
217219
with:
218-
context: ./
220+
context: ./packages/cactus-plugin-satp-hermes
219221
file: ./packages/cactus-plugin-satp-hermes/satp-hermes-gateway.Dockerfile
220222
push: true
221223
tags: |
@@ -228,7 +230,7 @@ jobs:
228230
if: needs.set-docker-tags.outputs.is_release != 'true'
229231
uses: docker/build-push-action@v5
230232
with:
231-
context: ./
233+
context: ./packages/cactus-plugin-satp-hermes
232234
file: ./packages/cactus-plugin-satp-hermes/satp-hermes-gateway.Dockerfile
233235
push: true
234236
tags: |
@@ -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,7 +278,7 @@ jobs:
275278
if: needs.set-docker-tags.outputs.is_release == 'true'
276279
uses: docker/build-push-action@v5
277280
with:
278-
context: ./
281+
context: ./packages/cactus-plugin-satp-hermes
279282
file: ./packages/cactus-plugin-satp-hermes/satp-hermes-gateway.Dockerfile
280283
push: true
281284
tags: |
@@ -288,7 +291,7 @@ jobs:
288291
if: needs.set-docker-tags.outputs.is_release != 'true'
289292
uses: docker/build-push-action@v5
290293
with:
291-
context: ./
294+
context: ./packages/cactus-plugin-satp-hermes
292295
file: ./packages/cactus-plugin-satp-hermes/satp-hermes-gateway.Dockerfile
293296
push: true
294297
tags: |

0 commit comments

Comments
 (0)