From e32b92e5b9ee83e5df8c35ca169717473ebfd16a Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 7 Dec 2023 22:55:00 +0100 Subject: [PATCH] Test --- .github/workflows/docker-vue3.yml | 4 ++++ Dockerfile | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/docker-vue3.yml b/.github/workflows/docker-vue3.yml index 81a0a07d..33a52290 100644 --- a/.github/workflows/docker-vue3.yml +++ b/.github/workflows/docker-vue3.yml @@ -43,11 +43,15 @@ jobs: uses: docker/build-push-action@v5 with: push: true + load: true # Needed to be accessible as $TAG below for yarn cache context: . tags: ${{env.TAG}} cache-from: type=gha cache-to: type=gha,mode=max + - name: Test + run: docker images + - 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 diff --git a/Dockerfile b/Dockerfile index c30dec8f..eeeb6527 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,8 @@ WORKDIR /opt/facilmap/server COPY ./ ../ +RUN ls ../.yarn/cache + RUN chown -R facilmap:facilmap /opt/facilmap USER facilmap