Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Dec 7, 2023
1 parent d253226 commit e32b92e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-vue3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ WORKDIR /opt/facilmap/server

COPY ./ ../

RUN ls ../.yarn/cache

RUN chown -R facilmap:facilmap /opt/facilmap

USER facilmap
Expand Down

0 comments on commit e32b92e

Please sign in to comment.