From d6644f91032b2c3b76c94557e9b3a886797997e8 Mon Sep 17 00:00:00 2001 From: Simon Kirillov Date: Fri, 26 Jul 2024 16:36:27 +0200 Subject: [PATCH] Update action versions --- .github/workflows/dockerhub-description.yml | 6 +++--- .github/workflows/dockerhub-push.yml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.yml index 61850225..3176c76a 100644 --- a/.github/workflows/dockerhub-description.yml +++ b/.github/workflows/dockerhub-description.yml @@ -10,10 +10,10 @@ jobs: runs-on: self-hosted-amd64-1cpu steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Import secrets - uses: hashicorp/vault-action@v2 + uses: hashicorp/vault-action@v3 id: secrets with: exportEnv: false @@ -26,7 +26,7 @@ jobs: kv-gitlab-ci/data/github/shared/dockerhub-creds password | DOCKERHUB_PASSWORD ; - name: Update DockerHub Description - uses: peter-evans/dockerhub-description@v3 + uses: peter-evans/dockerhub-description@v4 with: username: ${{ steps.secrets.outputs.DOCKERHUB_USER }} password: ${{ steps.secrets.outputs.DOCKERHUB_PASSWORD }} diff --git a/.github/workflows/dockerhub-push.yml b/.github/workflows/dockerhub-push.yml index 9816b8c6..341a843a 100644 --- a/.github/workflows/dockerhub-push.yml +++ b/.github/workflows/dockerhub-push.yml @@ -12,12 +12,12 @@ jobs: runs-on: self-hosted-amd64-1cpu steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Import secrets - uses: hashicorp/vault-action@v2 + uses: hashicorp/vault-action@v3 id: secrets with: exportEnv: false @@ -30,20 +30,20 @@ jobs: kv-gitlab-ci/data/github/shared/dockerhub-creds password | DOCKERHUB_PASSWORD ; - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ steps.secrets.outputs.DOCKERHUB_USER }} password: ${{ steps.secrets.outputs.DOCKERHUB_PASSWORD }} - 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@v3 - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: wallarm/gotestwaf tags: | @@ -52,7 +52,7 @@ jobs: type=raw,value=edge,enable={{is_default_branch}} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64 @@ -67,13 +67,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Delete old cached docker layers env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - set -eu -o pipefail + set -eu LAST_WORKFLOW_TIME=$( gh run list \