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 33a8267
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-vue3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push (FacilMap)
id: docker_build_facilmap
name: Build docker image (FacilMap)
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: 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
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 33a8267

Please sign in to comment.