-
Notifications
You must be signed in to change notification settings - Fork 220
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
f20f1ac
commit 26d5de3
Showing
4 changed files
with
36 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /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 | ||
|
||
nix build .#pushDockerImage \ | ||
--override-input hostNixpkgs path:$(nix eval --impure -I $NIX_PATH --expr '(import <nixpkgs> {}).path') \ | ||
--override-input customConfig path:./config -o docker-build-push | ||
|
||
./docker-build-push |
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 |