Skip to content

Commit

Permalink
Archive release and set proper version
Browse files Browse the repository at this point in the history
  • Loading branch information
mendsley committed Nov 1, 2024
1 parent 20ffba7 commit 37dfc3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/dockerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
name: Build binaries
run: |
& docker run --name ${{ env.TEST_CTN_NAME }} -e "DOCKER_GITCOMMIT=${{ github.sha }}" `
-e "DOCKER_VERSION=${{ needs.prepare.outputs.tag }}" `
-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
Expand Down Expand Up @@ -152,6 +153,14 @@ jobs:
name: List artifacts
run: |
tree -nh ${{ env.BIN_OUT }}
-
name: Archive artifacts
run: |
tar czvf "${{ env.BIN_OUT }}/docker-${{ needs.prepare.outputs.tag }}.windows-amd64.tar.gz" --sort=name ${{ env.BIN_OUT }}
-
name: List artifacts
run: |
tree -nh ${{ env.BIN_OUT }}
-
name: GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -160,5 +169,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 }}
2 changes: 1 addition & 1 deletion hack/make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Try {
if ($CommitSuffix -ne "") { $gitCommit += "-"+$CommitSuffix -Replace ' ', '' }

# Get the version of docker (eg 17.04.0-dev)
$dockerVersion="0.0.0-dev"
$dockerVersion="$env:DOCKER_VERSION"
# Overwrite dockerVersion if VERSION Environment variable is available
if (Test-Path Env:\VERSION) { $dockerVersion=$env:VERSION }

Expand Down

0 comments on commit 37dfc3a

Please sign in to comment.