-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Prepare QCW Docker (from revision) | ||
|
||
on: workflow_dispatch | ||
|
||
env: | ||
CLI_GITURL: https://github.com/docker/cli.git | ||
CLI_SHA: 3ab42569583b58dbc6f167d842d5a3dd5972065f | ||
COMPOSE_GITURL: https://github.com/docker/compose.git | ||
COMPOSE_SHA: 234036756b94e296b6ff4dc4d54896993b60db36 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🏗️ Install Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: "📝 Configure checkout" | ||
run: git config --global core.autocrlf input | ||
|
||
- name: "📝 Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: "📝 Fetch sources CLI" | ||
run: | | ||
mkdir docker-cli-release | ||
cd docker-cli-release | ||
git init | ||
git remote add origin $CLI_GITURL | ||
git fetch --depth 1 origin $CLI_SHA | ||
git checkout FETCH_HEAD | ||
- name: "📝 Fetch sources Compose" | ||
run: | | ||
mkdir docker-compose-release | ||
cd docker-compose-release | ||
git init | ||
git remote add origin $COMPOSE_GITURL | ||
git fetch --depth 1 origin $COMPOSE_SHA | ||
git checkout FETCH_HEAD | ||
- name: "🛠️ Build Docker CLI" | ||
working-directory: docker-cli-release | ||
run: | | ||
docker buildx bake --set binary.platform=windows/amd64 | ||
- name: "🛠️ Build Docker Compose" | ||
working-directory: docker-compose-release | ||
run: | | ||
docker buildx bake --set binary.platform=windows/amd64 | ||
- name: "📦 Pack Docker" | ||
run: | | ||
mkdir -p qcw | ||
ls docker-cli-release/build | ||
ls docker-compose-release/bin/build | ||
cp docker-cli-release/build/docker-windows-amd64.exe qcw/docker.exe | ||
cp bin/build/docker-compose.exe qcw/docker-compose.exe | ||
cd qcw | ||
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums | ||
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums | ||
cat sha.checksums | ||
- name: "🚀 Upload artifact" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: qcw-docker | ||
path: qcw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters