From f594c8639c3c584aa3963cfe273f93f499641bfc Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Wed, 22 May 2024 13:41:22 +0200 Subject: [PATCH] Build and push docker workflow: Remove deprecations, and use the current tag to get the latest release --- .github/workflows/build-push-docker-image.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index e9f19ab5..6ca92d4c 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -20,18 +20,16 @@ jobs: uses: robinraju/release-downloader@v1.7 with: latest: true - fileName: "*.tar.bz2" + tag: "${{ github.ref_name }}" - name: Get commit details for the tag from the latest release id: commit_details run: | - GIT_SHA=$(git rev-list -n 1 ${{ steps.release.outputs.tag_name }}) - GIT_COMMIT_TIME=$(git show -s --format=%ci ${{ steps.release.outputs.tag_name }}) - echo "::set-output name=sha::$GIT_SHA" - echo "::set-output name=commit_time::$GIT_COMMIT_TIME" + echo "sha=$(git rev-list -n 1 ${{ steps.release.outputs.tag_name }})" >> $GITHUB_OUTPUT + echo "commit_time=$(git show -s --format=%ci ${{ steps.release.outputs.tag_name }})" >> $GITHUB_OUTPUT - 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@v3