From c966a456b082f6d744e6f52ad9dd65dcfb82f5f5 Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Sun, 17 Sep 2023 16:55:03 +0300 Subject: [PATCH] Update workflows --- .github/workflows/docker.yml | 12 ++---------- .github/workflows/package-audit.yml | 3 ++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 19834b9e..6f708ec7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -71,21 +71,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - - name: Cache Docker layers - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Build and push uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.prep.outputs.tags }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-from: type=gha + cache-to: type=gha,mode=max context: . file: ./Dockerfile labels: | diff --git a/.github/workflows/package-audit.yml b/.github/workflows/package-audit.yml index b12189d0..6cf00979 100644 --- a/.github/workflows/package-audit.yml +++ b/.github/workflows/package-audit.yml @@ -3,6 +3,7 @@ name: Package Audit on: push: branches: + - '**' paths: - package.json - package-lock.json @@ -26,4 +27,4 @@ jobs: node-version: lts/* - name: Run audit - run: npm audit --production + run: npm audit --omit=dev