From bfa8a53f68dd4d021c884d5211cbd7a6f678aced Mon Sep 17 00:00:00 2001 From: Dimosthenis Schizas Date: Wed, 3 Apr 2024 15:45:13 +0300 Subject: [PATCH] update github workflows to latest versions --- .github/workflows/build.yaml | 8 ++++---- .github/workflows/deploy.yaml | 8 ++++---- .github/workflows/test.yaml | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1de3299..66ea6e4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,20 +17,20 @@ jobs: DOCKER_IMAGE: ghcr.io/hackthebox/hackster:base steps: - name: Checkout repo - uses: actions/checkout@v3.5.0 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to ghcr.io - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: true context: . diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index cbd125f..b30f9c5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -23,17 +23,17 @@ jobs: DEPLOYMENT_NAME: ${{ (contains(github.ref, '-rc')) && 'hackster-dev' || 'hackster' }} steps: - name: Checkout repo - uses: actions/checkout@v3.5.0 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to ghcr.io - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: true context: . diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5b93683..a54aaf6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,6 @@ name: Test -on: [ push, workflow_dispatch ] +on: [push, workflow_dispatch] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3.5.0 + uses: actions/checkout@v4 - id: setup-python name: Set up Python 3.11 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 @@ -31,7 +31,7 @@ jobs: # Only when the context is exactly the same, we will restore the cache. - name: Load cached venv id: restore-poetry-dependencies - uses: actions/cache/restore@v3.3.1 + uses: actions/cache/restore@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -43,7 +43,7 @@ jobs: - id: cache-poetry-dependencies name: Cache venv if: steps.restore-poetry-dependencies.outputs.cache-hit != 'true' - uses: actions/cache/save@v3.3.1 + uses: actions/cache/save@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -54,4 +54,4 @@ jobs: poetry run task coverage xml - name: Upload coverage reports to CodeCov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4