From db2e8e2977abc40e4e8a4e111425c1a6379ddf5d Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Wed, 5 Jun 2024 19:45:27 +0100 Subject: [PATCH] chore: ignore version on caches --- .github/workflows/build.yml | 16 ++++++++-------- build-scripts/Dockerfile.ci | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04b32ca13..d64f62d31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,24 +7,24 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v4 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-buildx-updatetar restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-buildx-updatetar - name: Build Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . file: build-scripts/Dockerfile.ci @@ -40,7 +40,7 @@ jobs: docker rm extract_artifact - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: update.tar path: update.tar diff --git a/build-scripts/Dockerfile.ci b/build-scripts/Dockerfile.ci index b37fde20a..d19763c0e 100644 --- a/build-scripts/Dockerfile.ci +++ b/build-scripts/Dockerfile.ci @@ -6,6 +6,7 @@ FROM lamassu/upboard-build:2.0 as build curl -sL https://ssubucket.ams3.digitaloceanspaces.com/deploy-files_2019.06.07.txz | xz -dc | tar -x COPY ["package.json", "package-lock.json", "./lamassu-machine/"] + RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0 RUN cd lamassu-machine && npm install COPY . ./lamassu-machine/