Skip to content

Commit f2f4ffd

Browse files
authored
[ADP-3401] Expose the docker image as an artifact (#4740)
- [x] Expose a version correct image in the docker build steps, to be copied to the release artifacts, https://buildkite.com/cardano-foundation/cardano-wallet/builds/6874#01915bab-9139-471f-b4a9-5c3267ef937e/161-168 ADP-3401
2 parents 1df739b + 004612c commit f2f4ffd

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ steps:
616616

617617
- group: Docker
618618
key: docker-artifacts
619-
if: build.env("RELEASE_CANDIDATE") != null || build.tag =~ /^v20/
619+
if: build.env("RELEASE_CANDIDATE") != null
620620
depends_on:
621621
- linux-artifacts
622622
steps:
@@ -630,7 +630,9 @@ steps:
630630
key: docker-build
631631
depends_on: docker-build-block
632632
commands:
633-
./scripts/buildkite/release/docker-build.sh
633+
./scripts/buildkite/main/docker-build.sh
634+
artifact_paths:
635+
- ./artifacts/*.tgz
634636
agents:
635637
system: x86_64-linux
636638

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
#! /usr/bin/env -S nix shell --command bash
2-
# shellcheck shell=bash
1+
#! /bin/bash
32

43
set -euox pipefail
54

65
git fetch --all
76

87
RELEASE_CANDIDATE_COMMIT=$(buildkite-agent meta-data get "release-candidate-commit")
8+
RELEASE_VERSION=$(buildkite-agent meta-data get "release-version")
99

1010
git checkout "$RELEASE_CANDIDATE_COMMIT"
1111

1212
mkdir -p result
1313

14-
nix build .#dockerImage -o result/docker-image
14+
mkdir -p artifacts
1515

16-
docker load < result/docker-image
16+
TARGET="artifacts/cardano-wallet-$RELEASE_VERSION-docker-image.tgz"
17+
18+
nix build .#dockerImage -o "$TARGET"
19+
20+
docker load < "$TARGET"

0 commit comments

Comments
 (0)