Skip to content

Commit 45b7d91

Browse files
authored
Merge pull request #4 from PlayEveryWare/mendsley/release_zip
Archive release and set proper version
2 parents 20ffba7 + 472b82d commit 45b7d91

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/dockerd.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
name: Build binaries
117117
run: |
118118
& docker run --name ${{ env.TEST_CTN_NAME }} -e "DOCKER_GITCOMMIT=${{ github.sha }}" `
119+
-e "VERSION=${{ needs.prepare.outputs.tag }}" `
120+
-e "DOCKERCLI_VERSION=27.3.1" `
119121
-v "${{ github.workspace }}\go-build:C:\Users\ContainerAdministrator\AppData\Local\go-build" `
120122
-v "${{ github.workspace }}\go\pkg\mod:C:\gopath\pkg\mod" `
121123
${{ env.TEST_IMAGE_NAME }} hack\make.ps1 -Daemon -Client
@@ -152,6 +154,15 @@ jobs:
152154
name: List artifacts
153155
run: |
154156
tree -nh ${{ env.BIN_OUT }}
157+
-
158+
name: Archive artifacts
159+
working-directory: ${{ env.BIN_OUT }}
160+
run: |
161+
tar czvf "${{ env.BIN_OUT }}/docker-${{ needs.prepare.outputs.tag }}.windows-amd64.tar.gz" --sort=name *.exe
162+
-
163+
name: List artifacts
164+
run: |
165+
tree -nh ${{ env.BIN_OUT }}
155166
-
156167
name: GitHub Release
157168
if: startsWith(github.ref, 'refs/tags/v')
@@ -160,5 +171,5 @@ jobs:
160171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161172
with:
162173
draft: true
163-
files: ${{ env.BIN_OUT }}/*
174+
files: ${{ env.BIN_OUT }}/*.tar.gz
164175
name: ${{ needs.prepare.outputs.tag }}

0 commit comments

Comments
 (0)