From 9cf818559e96a67fce77f585ceebe025164431e2 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Fri, 8 Dec 2023 19:03:00 +0100 Subject: [PATCH] Enable yarn cache --- .github/workflows/docker-vue3.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker-vue3.yml b/.github/workflows/docker-vue3.yml index 4e197596..abb1dffb 100644 --- a/.github/workflows/docker-vue3.yml +++ b/.github/workflows/docker-vue3.yml @@ -18,11 +18,11 @@ jobs: uses: actions/checkout@v4 # Set up yarn cache - # - name: Set up Node.js - # uses: actions/setup-node@v4 - # with: - # node-version: '21' - # cache: 'yarn' + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '21' + cache: 'yarn' # Build docker image - @@ -41,17 +41,17 @@ jobs: name: Build docker image (FacilMap) uses: docker/build-push-action@v5 with: - #load: true # Needed to be accessible as $TAG below for yarn cache - push: true + load: true # Needed to be accessible as $TAG below for yarn cache + #push: true context: . tags: ${{env.TAG}} #cache-from: type=gha #cache-to: type=gha,mode=max - # - - # name: Push docker image (FacilMap) - # run: docker push "$TAG" + - + name: Push docker image (FacilMap) + run: docker push "$TAG" - # - - # name: Populate Yarn cache - # run: rm -f .yarn/cache/* && docker cp "$(docker create "$TAG"):/opt/facilmap/.yarn/cache/." .yarn/cache/ && ls .yarn/cache \ No newline at end of file + - + name: Populate Yarn cache + run: rm -f .yarn/cache/* && docker cp "$(docker create "$TAG"):/opt/facilmap/.yarn/cache/." .yarn/cache/ && ls .yarn/cache \ No newline at end of file