From ac3de8e6079e0cfb6890bd9db99ab34259f14b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Thu, 1 Aug 2024 12:05:39 +0200 Subject: [PATCH] Update Github actions versions --- .github/workflows/build.yml | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 515b0d1..ccb0cd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -26,15 +26,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-build - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -55,15 +55,15 @@ jobs: portal ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -71,7 +71,7 @@ jobs: - run: npm ci - run: npx lerna run build --scope=@fumix/fu-blog-${{ matrix.workspace }} - run: echo "This file is placed at the project root, so Github preserves the artifact paths (see https://github.com/actions/upload-artifact/issues/206)" > root.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: dist path: | # Important to use `|` to preserve the path (see https://github.com/actions/upload-artifact/issues/55#issuecomment-633825395) @@ -84,15 +84,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache build id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules/.cache/nx key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: 'npm' @@ -111,8 +111,8 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: name: dist - run: | @@ -126,17 +126,17 @@ jobs: npm install - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }}-app - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: docker/app push: true @@ -160,10 +160,10 @@ jobs: en_US ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }}-postgres labels: | @@ -178,13 +178,13 @@ jobs: latest=auto suffix=-${{ matrix.language }},onlatest=true - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: build-args: | language=${{ matrix.language }}