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