From 2281b1940c7b99d3ab092add0e1951dd54da51fc Mon Sep 17 00:00:00 2001 From: Clemence Kyara Date: Thu, 1 Aug 2024 13:27:16 +0300 Subject: [PATCH] Update RoboShield action to match other actions --- .github/workflows/roboshield-deploy-dev.yml | 14 +++++++------- .github/workflows/roboshield-deploy-prod.yml | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/roboshield-deploy-dev.yml b/.github/workflows/roboshield-deploy-dev.yml index ab5a41c37..5b28730a7 100644 --- a/.github/workflows/roboshield-deploy-dev.yml +++ b/.github/workflows/roboshield-deploy-dev.yml @@ -26,19 +26,19 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [20] + node-version: [20.16] os: [ubuntu-latest] steps: - - name: Cloning repo - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ runner.os }}-buildx-${{ github.sha }} path: /tmp/.buildx-cache @@ -46,13 +46,13 @@ jobs: ${{ runner.os }}-buildx- - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} username: ${{ secrets.DOCKER_HUB_USERNAME }} - name: Build Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: build-args: | MONGO_URL=${{ secrets.ROBOSHIELD_MONGO_URL }} diff --git a/.github/workflows/roboshield-deploy-prod.yml b/.github/workflows/roboshield-deploy-prod.yml index 3baf027ea..de083cb56 100644 --- a/.github/workflows/roboshield-deploy-prod.yml +++ b/.github/workflows/roboshield-deploy-prod.yml @@ -26,8 +26,8 @@ jobs: node-version: [20.16] os: [ubuntu-latest] steps: - - name: Cloning repo - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js @@ -44,11 +44,11 @@ jobs: - name: Set up Docker Buildx if: steps.version-check.outputs.changed == 'true' - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers if: steps.version-check.outputs.changed == 'true' - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ runner.os }}-buildx-${{ github.sha }} path: /tmp/.buildx-cache @@ -57,14 +57,14 @@ jobs: - name: Login to DockerHub if: steps.version-check.outputs.changed == 'true' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} username: ${{ secrets.DOCKER_HUB_USERNAME }} - name: Build Docker image if: steps.version-check.outputs.changed == 'true' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: build-args: | MONGO_URL=${{ secrets.ROBOSHIELD_MONGO_URL }}