Skip to content

Commit

Permalink
Revert "Enable GitHub Action cache for docker and yarn"
Browse files Browse the repository at this point in the history
This reverts commit f9c2336.

The build is faster without the cache
  • Loading branch information
cdauth committed Dec 8, 2023
1 parent f9c2336 commit fb131f4
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/docker-vue3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- 'vue3'

env:
TAG: facilmap/facilmap:vue3

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand All @@ -16,15 +13,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4

# Set up yarn cache
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'yarn'

# Build docker image
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -38,20 +26,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build docker image (FacilMap)
name: Build and push (FacilMap)
id: docker_build_facilmap
uses: docker/build-push-action@v5
with:
load: true # Needed to be accessible as $TAG below for yarn cache
#push: true # load and push cannot be both true, so we push in the next step instead
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: Populate Yarn cache
run: rm -f .yarn/cache/* && docker cp "$(docker create "$TAG"):/opt/facilmap/.yarn/cache/." .yarn/cache/ && ls .yarn/cache
tags: facilmap/facilmap:vue3

0 comments on commit fb131f4

Please sign in to comment.