Skip to content

Commit d78ae1f

Browse files
committed
Fix formatting in Workflows
1 parent 514d44b commit d78ae1f

8 files changed

+783
-784
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
name: Prepare QCW Alpine-WSL (from revision)
2-
on:
3-
workflow_dispatch:
4-
workflow_call:
5-
outputs:
6-
alpine_version:
7-
description: "Alpine version"
8-
value: ${{ jobs.build.outputs.alpine_version }}
9-
alpine_wsl_version:
10-
description: "Alpine-WSL version"
11-
value: ${{ jobs.build.outputs.alpine_wsl_version }}
12-
env:
13-
ALPINE_WSL_GITURL: https://github.com/yuk7/AlpineWSL.git
14-
ALPINE_WSL_SHA: f7aceea3c25aee24fdee0a08a5ec5d02abb8f2a0 # 3.18.4-0
15-
ALPINE_WSL_VERSION: 3.18.4-0
16-
ALPINE_VERSION: 3.21.3-0 # from the last applied patch
17-
jobs:
18-
build:
19-
runs-on: ubuntu-latest
20-
outputs:
21-
alpine_version: ${{ steps.make_versions.outputs.alpine }}
22-
alpine_wsl_version: ${{ steps.make_versions.outputs.alpine_wsl }}
23-
steps:
24-
- name: "📝 Configure checkout"
25-
run: git config --global core.autocrlf input
26-
- name: "📝 Checkout"
27-
uses: actions/checkout@v4
28-
with:
29-
fetch-depth: 1
30-
- name: "📝 Fetch sources"
31-
run: |
32-
mkdir alpine-wsl-release
33-
cd alpine-wsl-release
34-
git init
35-
git remote add origin $ALPINE_WSL_GITURL
36-
git fetch --depth 1 origin $ALPINE_WSL_SHA
37-
git checkout FETCH_HEAD
38-
patch --binary -l -p 1 < ../patches/AlpineWSL/0001-Updated-Alpine-Linux-distro-version-to-3.20.3.patch
39-
patch --binary -l -p 1 < ../patches/AlpineWSL/0002-Add-Lima-customizations.patch
40-
- name: "🛠️ Build Alpine-WSL"
41-
working-directory: alpine-wsl-release/src_x64
42-
run: |
43-
make rootfs.tar.gz
44-
- name: "📦 Pack Alpine-WSL"
45-
run: |
46-
mkdir -p qcw
47-
cp alpine-wsl-release/src_x64/rootfs.tar.gz qcw/lima-infra.wsl
48-
cd qcw
49-
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
50-
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
51-
cat sha.checksums
52-
- id: make_versions
53-
name: "📌 Export versions"
54-
run: |
55-
echo "alpine=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
56-
echo "alpine_wsl=$ALPINE_WSL_VERSION" >> "$GITHUB_OUTPUT"
57-
- name: "🚀 Upload artifact"
58-
uses: actions/upload-artifact@v4
59-
with:
60-
name: qcw-alpine
61-
path: qcw
1+
name: Prepare QCW Alpine-WSL (from revision)
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
outputs:
6+
alpine_version:
7+
description: "Alpine version"
8+
value: ${{ jobs.build.outputs.alpine_version }}
9+
alpine_wsl_version:
10+
description: "Alpine-WSL version"
11+
value: ${{ jobs.build.outputs.alpine_wsl_version }}
12+
env:
13+
ALPINE_WSL_GITURL: https://github.com/yuk7/AlpineWSL.git
14+
ALPINE_WSL_SHA: f7aceea3c25aee24fdee0a08a5ec5d02abb8f2a0 # 3.18.4-0
15+
ALPINE_WSL_VERSION: 3.18.4-0
16+
ALPINE_VERSION: 3.21.3-0 # from the last applied patch
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
outputs:
21+
alpine_version: ${{ steps.make_versions.outputs.alpine }}
22+
alpine_wsl_version: ${{ steps.make_versions.outputs.alpine_wsl }}
23+
steps:
24+
- name: "📝 Configure checkout"
25+
run: git config --global core.autocrlf input
26+
- name: "📝 Checkout"
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 1
30+
- name: "📝 Fetch sources"
31+
run: |
32+
mkdir alpine-wsl-release
33+
cd alpine-wsl-release
34+
git init
35+
git remote add origin $ALPINE_WSL_GITURL
36+
git fetch --depth 1 origin $ALPINE_WSL_SHA
37+
git checkout FETCH_HEAD
38+
patch --binary -l -p 1 < ../patches/AlpineWSL/0001-Updated-Alpine-Linux-distro-version-to-3.20.3.patch
39+
patch --binary -l -p 1 < ../patches/AlpineWSL/0002-Add-Lima-customizations.patch
40+
- name: "🛠️ Build Alpine-WSL"
41+
working-directory: alpine-wsl-release/src_x64
42+
run: |
43+
make rootfs.tar.gz
44+
- name: "📦 Pack Alpine-WSL"
45+
run: |
46+
mkdir -p qcw
47+
cp alpine-wsl-release/src_x64/rootfs.tar.gz qcw/lima-infra.wsl
48+
cd qcw
49+
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
50+
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
51+
cat sha.checksums
52+
- id: make_versions
53+
name: "📌 Export versions"
54+
run: |
55+
echo "alpine=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
56+
echo "alpine_wsl=$ALPINE_WSL_VERSION" >> "$GITHUB_OUTPUT"
57+
- name: "🚀 Upload artifact"
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: qcw-alpine
61+
path: qcw
+76-76
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
name: Prepare QCW Docker (from revision)
2-
on:
3-
workflow_dispatch:
4-
workflow_call:
5-
outputs:
6-
cli_version:
7-
description: "Docker CLI version"
8-
value: ${{ jobs.build.outputs.cli_version }}
9-
compose_version:
10-
description: "Docker Compose version"
11-
value: ${{ jobs.build.outputs.compose_version }}
12-
env:
13-
CLI_GITURL: https://github.com/docker/cli.git
14-
CLI_SHA: 068a01ea9470df6494cc92d9e64e240805ae47a7 # v28.0.1
15-
CLI_VERSION: 28.0.1
16-
COMPOSE_GITURL: https://github.com/docker/compose.git
17-
COMPOSE_SHA: da2eff4ba7d95ddae71d6b70323dbe739bbd130b # v2.33.1
18-
COMPOSE_VERSION: 2.33.1
19-
jobs:
20-
build:
21-
runs-on: ubuntu-latest
22-
outputs:
23-
cli_version: ${{ steps.make_versions.outputs.cli }}
24-
compose_version: ${{ steps.make_versions.outputs.compose }}
25-
steps:
26-
- name: 🏗️ Install Docker Buildx
27-
uses: docker/setup-buildx-action@v3
28-
- name: "📝 Configure checkout"
29-
run: git config --global core.autocrlf input
30-
- name: "📝 Checkout"
31-
uses: actions/checkout@v4
32-
with:
33-
fetch-depth: 1
34-
- name: "📝 Fetch sources CLI"
35-
run: |
36-
mkdir docker-cli-release
37-
cd docker-cli-release
38-
git init
39-
git remote add origin $CLI_GITURL
40-
git fetch --depth 1 origin $CLI_SHA
41-
git checkout FETCH_HEAD
42-
- name: "📝 Fetch sources Compose"
43-
run: |
44-
mkdir docker-compose-release
45-
cd docker-compose-release
46-
git init
47-
git remote add origin $COMPOSE_GITURL
48-
git fetch --depth 1 origin $COMPOSE_SHA
49-
git checkout FETCH_HEAD
50-
- name: "🛠️ Build Docker CLI"
51-
working-directory: docker-cli-release
52-
run: |
53-
docker buildx bake --set binary.platform=windows/amd64
54-
- name: "🛠️ Build Docker Compose"
55-
working-directory: docker-compose-release
56-
run: |
57-
docker buildx bake --set binary.platform=windows/amd64
58-
- name: "📦 Pack Docker"
59-
run: |
60-
mkdir -p qcw
61-
cp docker-cli-release/build/docker-windows-amd64.exe qcw/docker.exe
62-
cp docker-compose-release/bin/build/docker-compose.exe qcw/docker-compose.exe
63-
cd qcw
64-
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
65-
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
66-
cat sha.checksums
67-
- id: make_versions
68-
name: "📌 Export versions"
69-
run: |
70-
echo "cli=$CLI_VERSION" >> "$GITHUB_OUTPUT"
71-
echo "compose=$COMPOSE_VERSION" >> "$GITHUB_OUTPUT"
72-
- name: "🚀 Upload artifact"
73-
uses: actions/upload-artifact@v4
74-
with:
75-
name: qcw-docker
76-
path: qcw
1+
name: Prepare QCW Docker (from revision)
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
outputs:
6+
cli_version:
7+
description: "Docker CLI version"
8+
value: ${{ jobs.build.outputs.cli_version }}
9+
compose_version:
10+
description: "Docker Compose version"
11+
value: ${{ jobs.build.outputs.compose_version }}
12+
env:
13+
CLI_GITURL: https://github.com/docker/cli.git
14+
CLI_SHA: 068a01ea9470df6494cc92d9e64e240805ae47a7 # v28.0.1
15+
CLI_VERSION: 28.0.1
16+
COMPOSE_GITURL: https://github.com/docker/compose.git
17+
COMPOSE_SHA: da2eff4ba7d95ddae71d6b70323dbe739bbd130b # v2.33.1
18+
COMPOSE_VERSION: 2.33.1
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
outputs:
23+
cli_version: ${{ steps.make_versions.outputs.cli }}
24+
compose_version: ${{ steps.make_versions.outputs.compose }}
25+
steps:
26+
- name: 🏗️ Install Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
- name: "📝 Configure checkout"
29+
run: git config --global core.autocrlf input
30+
- name: "📝 Checkout"
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 1
34+
- name: "📝 Fetch sources CLI"
35+
run: |
36+
mkdir docker-cli-release
37+
cd docker-cli-release
38+
git init
39+
git remote add origin $CLI_GITURL
40+
git fetch --depth 1 origin $CLI_SHA
41+
git checkout FETCH_HEAD
42+
- name: "📝 Fetch sources Compose"
43+
run: |
44+
mkdir docker-compose-release
45+
cd docker-compose-release
46+
git init
47+
git remote add origin $COMPOSE_GITURL
48+
git fetch --depth 1 origin $COMPOSE_SHA
49+
git checkout FETCH_HEAD
50+
- name: "🛠️ Build Docker CLI"
51+
working-directory: docker-cli-release
52+
run: |
53+
docker buildx bake --set binary.platform=windows/amd64
54+
- name: "🛠️ Build Docker Compose"
55+
working-directory: docker-compose-release
56+
run: |
57+
docker buildx bake --set binary.platform=windows/amd64
58+
- name: "📦 Pack Docker"
59+
run: |
60+
mkdir -p qcw
61+
cp docker-cli-release/build/docker-windows-amd64.exe qcw/docker.exe
62+
cp docker-compose-release/bin/build/docker-compose.exe qcw/docker-compose.exe
63+
cd qcw
64+
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
65+
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
66+
cat sha.checksums
67+
- id: make_versions
68+
name: "📌 Export versions"
69+
run: |
70+
echo "cli=$CLI_VERSION" >> "$GITHUB_OUTPUT"
71+
echo "compose=$COMPOSE_VERSION" >> "$GITHUB_OUTPUT"
72+
- name: "🚀 Upload artifact"
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: qcw-docker
76+
path: qcw

0 commit comments

Comments
 (0)