From 472b82d48da7a7bbc46cedc2cae74e15d945dfe2 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Fri, 1 Nov 2024 04:27:38 -0700 Subject: [PATCH] Archive release and set proper version --- .github/workflows/dockerd.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerd.yml b/.github/workflows/dockerd.yml index f1c19a9b61236..afeacfa390e5a 100644 --- a/.github/workflows/dockerd.yml +++ b/.github/workflows/dockerd.yml @@ -116,6 +116,8 @@ jobs: name: Build binaries run: | & docker run --name ${{ env.TEST_CTN_NAME }} -e "DOCKER_GITCOMMIT=${{ github.sha }}" ` + -e "VERSION=${{ needs.prepare.outputs.tag }}" ` + -e "DOCKERCLI_VERSION=27.3.1" ` -v "${{ github.workspace }}\go-build:C:\Users\ContainerAdministrator\AppData\Local\go-build" ` -v "${{ github.workspace }}\go\pkg\mod:C:\gopath\pkg\mod" ` ${{ env.TEST_IMAGE_NAME }} hack\make.ps1 -Daemon -Client @@ -152,6 +154,15 @@ jobs: name: List artifacts run: | tree -nh ${{ env.BIN_OUT }} + - + name: Archive artifacts + working-directory: ${{ env.BIN_OUT }} + run: | + tar czvf "${{ env.BIN_OUT }}/docker-${{ needs.prepare.outputs.tag }}.windows-amd64.tar.gz" --sort=name *.exe + - + name: List artifacts + run: | + tree -nh ${{ env.BIN_OUT }} - name: GitHub Release if: startsWith(github.ref, 'refs/tags/v') @@ -160,5 +171,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: draft: true - files: ${{ env.BIN_OUT }}/* + files: ${{ env.BIN_OUT }}/*.tar.gz name: ${{ needs.prepare.outputs.tag }}