-
Notifications
You must be signed in to change notification settings - Fork 214
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
Github Action
committed
Jun 24, 2024
1 parent
d996f7a
commit cddc78b
Showing
6 changed files
with
41 additions
and
7 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
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
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
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
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,23 @@ | ||
#! /usr/bin/env -S nix shell --command bash | ||
# shellcheck shell=bash | ||
|
||
set -euox pipefail | ||
|
||
git fetch --all | ||
|
||
RELEASE_COMMIT=$(buildkite-agent meta-data get "release-commit") | ||
|
||
git checkout "$RELEASE_COMMIT" | ||
|
||
mkdir -p config | ||
|
||
echo '{ outputs = _: { dockerHubRepoName = "cardanofoundation/cardano-wallet"; }; }' \ | ||
> config/flake.nix | ||
|
||
hostNixpkgs=$(nix eval --impure -I "$NIX_PATH" --expr '(import <nixpkgs> {}).path') | ||
|
||
mkdir -p result | ||
|
||
nix build .#dockerImage -o result/docker-image | ||
|
||
docker load < result/docker-image |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#! /usr/bin/env -S nix shell --command bash | ||
# shellcheck shell=bash | ||
|
||
RELEASE_CANDIDATE_BRANCH=$(buildkite-agent meta-data get "release-candidate-branch") | ||
set -euox pipefail | ||
|
||
git checkout "$RELEASE_CANDIDATE_BRANCH" | ||
RELEASE_COMMIT=$(buildkite-agent meta-data get "release-commit") | ||
|
||
git checkout "$RELEASE_COMMIT" | ||
|
||
nix build -o result/linux .#ci.artifacts.linux64.release |