Skip to content

Commit

Permalink
Merge pull request #9 from jandubois/bump-25.0.0
Browse files Browse the repository at this point in the history
Enable arm64 builds for Linux and Windows and bump default tag to v25.0.1
  • Loading branch information
mook-as authored Jan 24, 2024
2 parents 705988a + ac38e7a commit f53e981
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
TAG:
description: Docker CLI tag to build
required: true
default: v24.0.7
default: v25.0.1

defaults:
run:
Expand All @@ -33,7 +33,7 @@ jobs:
working-directory: .

- name: Set Docker CLI tag from inputs
if: inputs.TAG
if: github.event_name == 'workflow_dispatch'
run: echo "DOCKER_CLI_REF=${{ inputs.TAG }}" >> "${GITHUB_ENV}"
working-directory: .

Expand Down Expand Up @@ -97,18 +97,40 @@ jobs:

- run: mv ./build/docker-linux-amd64 ./build/docker-wsl-amd64

- name: Build WSL arm64
uses: docker/[email protected]
with:
set: |
binary.platform=linux/arm64
binary.args.GO_LDFLAGS=-X github.com/docker/cli/cli/config/credentials.LinuxCredentialsStoreDefaultOverride=wincred.exe
workdir: cli

- run: mv ./build/docker-linux-arm64 ./build/docker-wsl-arm64

- name: Build linux amd64
uses: docker/[email protected]
with:
set: binary.platform=linux/amd64
workdir: cli

- name: Build linux arm64
uses: docker/[email protected]
with:
set: binary.platform=linux/arm64
workdir: cli

- name: Build windows amd64
uses: docker/[email protected]
with:
set: binary.platform=windows/amd64
workdir: cli

- name: Build windows arm64
uses: docker/[email protected]
with:
set: binary.platform=windows/arm64
workdir: cli

- name: Calculate Checksums
working-directory: cli/build
run: sha256sum docker-* > sha256sum.txt
Expand All @@ -128,26 +150,47 @@ jobs:
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload Linux artifact
name: Upload Linux amd64 artifact
with:
name: docker-linux-amd64
path: cli/build/docker-linux-amd64
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload Windows artifact
name: Upload Linux arm64 artifact
with:
name: docker-linux-arm64
path: cli/build/docker-linux-arm64
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload Windows amd64 artifact
with:
name: docker-windows-amd64
path: cli/build/docker-windows-amd64.exe
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload WSL artifact
name: Upload WSL amd64 artifact
with:
name: docker-wsl-amd64
path: cli/build/docker-wsl-amd64
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload Windows arm64 artifact
with:
name: docker-windows-arm64
path: cli/build/docker-windows-arm64.exe
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload WSL arm64 artifact
with:
name: docker-wsl-arm64
path: cli/build/docker-wsl-arm64
if-no-files-found: error

- uses: actions/upload-artifact@v2
name: Upload checksums
with:
Expand Down

0 comments on commit f53e981

Please sign in to comment.