From e60973a136f63ed8df85b0ddf8ce84e1628ac565 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Mon, 5 Feb 2024 13:35:53 +0900 Subject: [PATCH] Update Github actions --- .github/workflows/images_build.yml | 2 +- .github/workflows/nightly_build.yml | 50 ++++++++++----------- .github/workflows/nightly_build_windows.yml | 22 ++++----- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/images_build.yml b/.github/workflows/images_build.yml index 1f61b88e4..81bae9ce0 100644 --- a/.github/workflows/images_build.yml +++ b/.github/workflows/images_build.yml @@ -279,7 +279,7 @@ jobs: build: ${{ fromJson(needs.init_build.outputs.components) }} os: ${{ fromJson(needs.init_build.outputs.os) }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/nightly_build.yml b/.github/workflows/nightly_build.yml index bd34dacc7..f34f873ad 100644 --- a/.github/workflows/nightly_build.yml +++ b/.github/workflows/nightly_build.yml @@ -24,7 +24,7 @@ jobs: components: ${{ steps.components.outputs.list }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 @@ -77,24 +77,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: image: tonistiigi/binfmt:latest platforms: all - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: driver-opts: image=moby/buildkit:master - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -109,7 +109,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/zabbix-${{ env.BASE_BUILD_NAME }} tags: | @@ -120,7 +120,7 @@ jobs: - name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.os }} and push id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }} file: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }}/Dockerfile @@ -137,7 +137,7 @@ jobs: echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} - name: Upload SHA256 tag - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} @@ -153,27 +153,27 @@ jobs: build: ${{ fromJson(needs.init_build.outputs.database) }} os: ${{ fromJson(needs.init_build.outputs.os) }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: image: tonistiigi/binfmt:latest platforms: all - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: driver-opts: image=moby/buildkit:master - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -188,7 +188,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/zabbix-${{ matrix.build }} tags: | @@ -198,7 +198,7 @@ jobs: latest=false - name: Download SHA256 tag build-base:${{ matrix.os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-base_${{ matrix.os }} @@ -213,7 +213,7 @@ jobs: - name: Build ${{ matrix.build }}/${{ matrix.os }} and push id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./Dockerfiles/${{ matrix.build }}/${{ matrix.os }} file: ./Dockerfiles/${{ matrix.build }}/${{ matrix.os }}/Dockerfile @@ -231,7 +231,7 @@ jobs: echo "${{ steps.docker_build.outputs.digest }}" > ${{ matrix.build }}_${{ matrix.os }} - name: Upload SHA256 tag - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.build }}_${{ matrix.os }} path: ${{ matrix.build }}_${{ matrix.os }} @@ -247,26 +247,26 @@ jobs: build: ${{ fromJson(needs.init_build.outputs.components) }} os: ${{ fromJson(needs.init_build.outputs.os) }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: image: tonistiigi/binfmt:latest platforms: all - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: driver-opts: image=moby/buildkit:master - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -307,7 +307,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/zabbix-${{ matrix.build }} tags: | @@ -317,7 +317,7 @@ jobs: latest=false - name: Download SHA256 tag for ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 if: ${{ matrix.build != 'snmptraps' }} with: name: ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }} @@ -334,7 +334,7 @@ jobs: - name: Build ${{ matrix.build }}/${{ matrix.os }} and push id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./Dockerfiles/${{ matrix.build }}/${{ matrix.os }} file: ./Dockerfiles/${{ matrix.build }}/${{ matrix.os }}/Dockerfile diff --git a/.github/workflows/nightly_build_windows.yml b/.github/workflows/nightly_build_windows.yml index 16f98113f..0f895ce11 100644 --- a/.github/workflows/nightly_build_windows.yml +++ b/.github/workflows/nightly_build_windows.yml @@ -27,7 +27,7 @@ jobs: is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 @@ -90,7 +90,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 @@ -108,7 +108,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.BASE_BUILD_NAME }} tags: | @@ -161,7 +161,7 @@ jobs: - name: Upload SHA256 tag if: ${{ env.AUTO_PUSH_IMAGES }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.BASE_BUILD_NAME }}${{ env.BASE_BUILD_ARTIFACT_FILE_SUFFIX }} path: ${{ env.BASE_BUILD_NAME }}${{ env.BASE_BUILD_ARTIFACT_FILE_SUFFIX }} @@ -188,7 +188,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 @@ -206,7 +206,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.COMPONENT_BASE_BUILD_NAME }} tags: | @@ -216,7 +216,7 @@ jobs: latest=false - name: Download SHA256 tag build-base:${{ matrix.os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.BASE_BUILD_NAME }}${{ env.BASE_BUILD_ARTIFACT_FILE_SUFFIX }} @@ -273,7 +273,7 @@ jobs: - name: Upload SHA256 tag if: ${{ env.AUTO_PUSH_IMAGES }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.COMPONENT_BASE_BUILD_NAME }}${{ env.COMPONENT_BASE_BUILD_ARTIFACT_FILE_SUFFIX }} path: ${{ env.COMPONENT_BASE_BUILD_NAME }}${{ env.COMPONENT_BASE_BUILD_ARTIFACT_FILE_SUFFIX }} @@ -298,7 +298,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "refs/heads/trunk" fetch-depth: 1 @@ -316,7 +316,7 @@ jobs: - name: Generate tags id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ matrix.component }} tags: | @@ -326,7 +326,7 @@ jobs: latest=false - name: Download SHA256 tag for ${{ env.COMPONENT_BASE_BUILD_NAME }}:${{ matrix.os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.COMPONENT_BASE_BUILD_NAME }}${{ env.COMPONENT_BASE_BUILD_ARTIFACT_FILE_SUFFIX }}