Skip to content

Commit 5e9fc82

Browse files
committed
run sequentially to release resouces
1 parent ed07cbc commit 5e9fc82

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/build-images.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build-images:
10-
runs-on: macos-13
10+
runs-on: ubuntu-latest
1111
timeout-minutes: 120
1212
env:
1313
DOCKER_HUB_PARACHAIN: kiltprotocol/kilt-node
@@ -19,6 +19,11 @@ jobs:
1919
CI_COMMIT_BRANCH: ${{ github.ref_name }}
2020
CI_COMMIT_TAG: ${{ github.ref_name }}
2121
steps:
22+
- name: Free Disk Space
23+
uses: jlumbroso/free-disk-space@main
24+
with:
25+
tool-cache: true
26+
2227
- name: Checkout
2328
uses: actions/checkout@v4
2429

.maintain/build-image.sh

+7-11
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ set -e
44

55
target_tag=$1
66

7-
# Build the builder image and push it in the background
7+
# Build the builder image and push it sequentially
88
docker build \
99
--target builder \
1010
--cache-from $AWS_REGISTRY/kilt-parachain/collator:builder \
1111
-t $AWS_REGISTRY/kilt-parachain/collator:builder \
12-
. &
13-
docker push $AWS_REGISTRY/kilt-parachain/collator:builder &
12+
.
1413

15-
wait
14+
docker push $AWS_REGISTRY/kilt-parachain/collator:builder
1615

17-
# Build and tag images in parallel
1816
build_and_tag() {
1917
local node_type=$1
2018
local image_name=$2
@@ -28,12 +26,10 @@ build_and_tag() {
2826
.
2927
}
3028

31-
build_and_tag "kilt-parachain" "kilt-node" "kilt-parachain/collator" &
29+
build_and_tag "kilt-parachain" "kilt-node" "kilt-parachain/collator"
3230

33-
build_and_tag "standalone-node" "standalone-node" "kilt/prototype-chain" &
31+
build_and_tag "standalone-node" "standalone-node" "kilt/prototype-chain"
3432

35-
build_and_tag "dip-provider-node-template" "dip-provider-node-template" "kilt-parachain/collator" &
33+
build_and_tag "dip-provider-node-template" "dip-provider-node-template" "kilt-parachain/collator"
3634

37-
build_and_tag "dip-consumer-node-template" "dip-consumer-node-template" "kilt-parachain/collator" &
38-
39-
wait
35+
build_and_tag "dip-consumer-node-template" "dip-consumer-node-template" "kilt-parachain/collator"

0 commit comments

Comments
 (0)